]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/forum/tables_with_1_cell_in_1st_row.mdwn
Untested backport to Ubuntu trusty.
[git.ikiwiki.info.git] / doc / forum / tables_with_1_cell_in_1st_row.mdwn
1 Just found a bug while building a table with 1st column made of the lines output by <tt>ls -1</tt>. That means, in the beginning there's only 1 cell in each row, and if adding additional columns in other rows, the delimiter ('|') is taken as-is. No difference if the table has a header line or not, or if that one cell is following a '|'.
3 Examples:
6 ### 2 cells each
8 table with header
10 [[!table data="""
11 1 | 2
12 one | two
13 a |b
14 """]]
16 table without header
18 [[!table header="no" data="""
19 1 | 2
20 one | two
21 a |b
22 """]]
24 ### 2 cells, 3 later
27 table with header
29 [[!table data="""
30 1 | 2
31 one | two
32 a |b | c
33 """]]
35 table without header
37 [[!table header="no" data="""
38 1 | 2
39 one | two
40 a |b | c
41 """]]
43 ### 1 cell, 3 later
46 table with header
48 [[!table data="""
49 1
50 one | two
51 a |b | c
52 """]]
54 table without header
56 [[!table header="no" data="""
57 1
58 one | two
59 a |b | c
60 """]]
62 ### 1 cell (ended by delimiter), 3 later
65 table with header
67 [[!table data="""
68 1|
69 one | two
70 a |b | c
71 """]]
73 table without header
75 [[!table header="no" data="""
76 1|
77 one | two
78 a |b | c
79 """]]
81 ### 1 cell (line starts with delimiter), 3 later
84 table with header
86 [[!table data="""
87 |1
88 one | two
89 a |b | c
90 """]]
92 table without header
94 [[!table header="no" data="""
95 |1
96 one | two
97 a |b | c
98 """]]
100 ### 1 cell (line starts with SPC + delimiter), 3 later
103 table with header
105 [[!table data="""
106  |1
107 one | two
108 a |b | c
109 """]]
111 table without header
113 [[!table header="no" data="""
114  |1
115 one | two
116 a |b | c
117 """]]
120   -- [[EdePopede]]