Skip to content

Commit 592dc25

Browse files
committed
Add a failing test about tables
1 parent 5363271 commit 592dc25

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

tests/fixtures/expected/blocks/nodes/tables.html

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,44 @@
2222
</tbody>
2323
</table>
2424

25+
<table>
26+
<thead>
27+
<tr>
28+
<th>Columns separated by just 1 space</th>
29+
<th>Another header</th>
30+
</tr>
31+
</thead>
32+
<tbody>
33+
<tr>
34+
<td>xxx</td>
35+
<td>yyy</td>
36+
</tr>
37+
<tr>
38+
<td>xxx</td>
39+
<td>yyy</td>
40+
</tr>
41+
</tbody>
42+
</table>
43+
44+
<table>
45+
<thead>
46+
<tr>
47+
<th>Header with a leading space</th>
48+
<th>Another header</th>
49+
</tr>
50+
</thead>
51+
<tbody>
52+
<tr>
53+
<td>xxx</td>
54+
<td>yyy</td>
55+
</tr>
56+
<tr>
57+
<td>xxx</td>
58+
<td>yyy</td>
59+
</tr>
60+
</tbody>
61+
</table>
62+
2563
<p>Simple table headless:</p>
2664

2765
<table>
@@ -39,6 +77,19 @@
3977
</tbody>
4078
</table>
4179

80+
<table>
81+
<tbody>
82+
<tr>
83+
<td>Column with leading space</td>
84+
<td>yyy</td>
85+
</tr>
86+
<tr>
87+
<td>Another column with leading space</td>
88+
<td>yyy</td>
89+
</tr>
90+
</tbody>
91+
</table>
92+
4293
<p>Grid table:</p>
4394

4495
<table>

tests/fixtures/source/blocks/nodes/tables.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,32 @@ Route path If the requested URL is /foo If the requested URL is /f
77
/foo/ It makes a 301 redirect to /foo/ It matches (200 status response)
88
========== ======================================== ==========================================
99

10+
================================================== ==========================================
11+
Columns separated by just 1 space Another header
12+
================================================== ==========================================
13+
xxx yyy
14+
xxx yyy
15+
================================================== ==========================================
16+
17+
============================ ============================================
18+
Header with a leading space Another header
19+
============================ ============================================
20+
xxx yyy
21+
xxx yyy
22+
============================ ============================================
23+
1024
Simple table headless:
1125

1226
========== ======================================== ==========================================
1327
/foo It matches (200 status response) It doesn't match (404 status response)
1428
/foo/ It makes a 301 redirect to /foo/ It matches (200 status response)
1529
========== ======================================== ==========================================
1630

31+
================================== ====================================
32+
Column with leading space yyy
33+
Another column with leading space yyy
34+
================================== ====================================
35+
1736
Grid table:
1837

1938
+--------+------------+

0 commit comments

Comments
 (0)