Files
pandoc/test/command/8659.md
T
John MacFarlaneandClaude a83dbaf989 HTML writer: use truncate consistently for table width percentages.
The overall table width used `round` while individual column widths
(in colSpecListToHtml) used `truncate`, so the table width could
exceed the sum of the column widths.  Update test goldens.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-09-20 10:28:30 -07:00

978 B

A single pipe is parsed as an empty table

% pandoc -f org -t html
|
^D
<table>
<tbody>
<tr>
</tr>
</tbody>
</table>

Accepts an empty org table within a grid table cell

The misaligned pipe in the first row is treated as an empty table.

% pandoc -f org -t html
+-----+-----+-----+-----------+
|     |     |     |         |
+:====+=====+====:+==========:+
| a   |  b  | c   | d         |
+-----+-----+-----+-----------+
^D
<table style="width:41%;">
<colgroup>
<col style="width: 8%" />
<col style="width: 8%" />
<col style="width: 8%" />
<col style="width: 16%" />
</colgroup>
<thead>
<tr>
<th style="text-align: left;"></th>
<th></th>
<th style="text-align: right;"></th>
<th style="text-align: right;"><table>
<tbody>
<tr>
</tr>
</tbody>
</table></th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;"><p>a</p></td>
<td><p>b</p></td>
<td style="text-align: right;"><p>c</p></td>
<td style="text-align: right;"><p>d</p></td>
</tr>
</tbody>
</table>