[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #58898] Table needs an extra blank character after string columns i
From: |
Mohammad Akhlaghi |
Subject: |
[bug #58898] Table needs an extra blank character after string columns in plain-text |
Date: |
Tue, 4 Aug 2020 14:04:26 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0 |
URL:
<https://savannah.gnu.org/bugs/?58898>
Summary: Table needs an extra blank character after string
columns in plain-text
Project: GNU Astronomy Utilities
Submitted by: makhlaghi
Submitted on: Tue 04 Aug 2020 07:04:24 PM BST
Category: Table
Severity: 3 - Normal
Item Group: Output not reasonable
Status: Postponed
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58898>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #58898] Table needs an extra blank character after string columns in plain-text,
Mohammad Akhlaghi <=