Files
pandoc/test/command/7214.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

545 B

% pandoc
+------------+----------+------------------+
|日本語      | の文字列 | words in english |
+------------+----------+------------------+
|abc defghij | def      | xyz              |
+------------+----------+------------------+
^D
<table style="width:59%;">
<colgroup>
<col style="width: 18%" />
<col style="width: 15%" />
<col style="width: 26%" />
</colgroup>
<tbody>
<tr>
<td>日本語</td>
<td>の文字列</td>
<td>words in english</td>
</tr>
<tr>
<td>abc defghij</td>
<td>def</td>
<td>xyz</td>
</tr>
</tbody>
</table>