]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/bugs/Tab_delimited_tables_don__39__t_work.mdwn
Guessed right, but practically wrong => let's clear the mess and fix things up?
[ikiwiki.git] / doc / bugs / Tab_delimited_tables_don__39__t_work.mdwn
index 6f742ff702a73e775f457f4df2cd6638fd856424..39d57a4fe99a3607ec213ee4a5fbf0f5941753e1 100644 (file)
@@ -1,4 +1,22 @@
+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:
+
 [[!table format=dsv delimiter="\t" data="""
 1      2
 2      4
 """]]
+
+> They do work, but C-style backslash escapes aren't recognised,
+> so the syntax `delimiter="\t"` (as in your test case) looks
+> for the literal string `\t`. Replacing `\t` with a literal
+> tab character makes it work - here's a test (I changed the data
+> to make the table layout more obvious):
+>
+> [[!table format=dsv delimiter="      " data="""
+left   2
+2      right
+alpha  beta
+"""]]
+>
+> So, I think this can be considered [[not_a_bug|done]]? --[[smcv]]
+
+>> I've clarified the documentation. --[[smcv]]