bugGNU Astronomy Utilities - Bugs: bug #58898, Table needs an extra blank...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #58898: Table needs an extra blank character after string columns in plain-text

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Tue 04 Aug 2020 06:04:24 PM UTC
   
 
Category:  Table Severity:  3 - Normal
Item Group:  Output not reasonable Status:  Fixed
Privacy:  Public Assigned to:  makhlaghi
Open/Closed:  Closed

Wed 05 Aug 2020 01:46:37 AM UTC, comment #1: 

This bug has been fixed and pushed as Commit d49d9788b67.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Tue 04 Aug 2020 06:04:24 PM UTC, original submission:  

Assume we have the table below:


# Column 1: ID [counter, u8] Counter
# Column 2: NAME [name, str4] a name
# Column 3: Value [km, f32] A value
1 AAAA3.14
2 BBBB3.15


If you simply run this command, you will get the resulting table (lines under the command):


$ asttable test.txt
1      AAAA 0.14
1      BBBB 0.15


Notice how the '3' has been removed from the value of the third columns! However, this problem doesn't happen if we have an empty space after the string column, like this:


# Column 1: ID [counter, u8] Counter
# Column 2: NAME [name, str4] a name
# Column 3: Value [km, f32] A value
1 AAAA 3.14
2 BBBB 3.15


Scenarios like the first situation can happen and have caused some problems! We should fix this problem so the first table is properly read.

Mohammad Akhlaghi <makhlaghi>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-08-05 makhlaghi StatusPostponed Fixed
        Assigned toNone makhlaghi
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code