Skip to content

strange behavior when table meets CJK character #266

Closed Answered by pradyunsg
chenxuuu asked this question in Potential Issue
Discussion options

You must be logged in to vote

Hiya! Thanks for flagging this!

This seems to come from Sphinx itself, specifically from docutils (which is what Sphinx is built upon, to render the .rst files). Here's the final HTML that is provided to the Sphinx themes (in this case, Furo) to stylise:

<table class="docutils align-default">
<colgroup>
<col style="width: 56%">
<col style="width: 44%">
</colgroup>
<thead>
<tr class="row-odd"><th class="head"><p>返回值类型</p></th>
<th class="head"><p>解释</p></th>
</tr>
</thead>
<tbody>
<tr class="row-even"><td><p>nil</p></td>
<td><p>无返回值</p></td>
</tr>
</tbody>
</table>

The issue is the colgroup, which seems to be have been calculated incorrectly for CJK characters, and forces that rewrapping. …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chenxuuu
Comment options

Answer selected by chenxuuu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants