3 ms·
This is pretty under-specified... > A cell starts with | and ends with one or more tabs. |one\t|two|three How many cells is this? Seems like just one, w
by montroser 1y ago
This is pretty under-specified...
> A cell starts with | and ends with one or more tabs.
|one\t|two|three
How many cells is this? Seems like just one, with garbage at the end, since there are no closing tabs after the first cell? Should this line count as a valid row?
> A line that starts with a cell is a row. Any other lines are ignored.
Well, I guess it counts. Either way, how should one encode a value containing a tab followed by a pipe?
- jasonthorsness 1y agoThe spec says the last cell does not need to end in a tab, so this would be two cells IMO
- ctenb 1y agoThat's correct
- montroser 1y agoIs the "spec", the rules listed under the "syntax" heading? Or is it the python script? Or something else I missed? Because the python is in conflict with the syntax rules in that the rules say a cell ends with one or more tabs, but the python says a cell can end with the end of the line, even if there are no trailing tabs.
- ctenb 1y agoIt's rule number 6, which basically makes an exception to rule 1 :)
- bvrmn 1y agoI think spec tries and fails to translate code implementation into human language. In code cell separator is `\t|`.
- ctenb 1y agoThat's also correct. In what way does it fail?