]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/Tab_delimited_tables_don__39__t_work.mdwn
Explain tab-delimited tables a bit better
[ikiwiki.git] / doc / bugs / Tab_delimited_tables_don__39__t_work.mdwn
1 Table directive should support tab-delimited data, especially important since this is the format you will get if copy/pasting from an HTML table or spreadsheet (Gnumeric, OO Calc, Excel). Test case which fails:
2
3 [[!table format=dsv delimiter="\t" data="""
4 1       2
5 2       4
6 """]]
7
8 > They do work, but C-style backslash escapes aren't recognised,
9 > so the syntax `delimiter="\t"` (as in your test case) looks
10 > for the literal string `\t`. Replacing `\t` with a literal
11 > tab character makes it work - here's a test (I changed the data
12 > to make the table layout more obvious):
13 >
14 > [[!table format=dsv delimiter="       " data="""
15 left    2
16 2       right
17 alpha   beta
18 """]]
19 >
20 > So, I think this can be considered [[not_a_bug|done]]? --[[smcv]]
21
22 >> I've clarified the documentation. --[[smcv]]