Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

&nbsp is appeared in EPUB docs #3450

Closed
tk0miya opened this issue Feb 24, 2017 · 4 comments
Closed

&nbsp is appeared in EPUB docs #3450

tk0miya opened this issue Feb 24, 2017 · 4 comments

Comments

@tk0miya
Copy link
Member

tk0miya commented Feb 24, 2017

Problem

  •   entity is appeared in EPUB docs. It is not allowed in EPUB (XHTML5).

Procedure to reproduce the problem

.. list-table::
   :header-rows: 1
   - * one
     * two
     * three
   - * un
     * 
     * trois

Error logs / results

The generated EPUB file contains   entity

<tbody valign="top">
<tr class="row-even"><td>un</td>
<td>&nbsp;</td>
<td>trois</td>
</tr>
</tbody>

Expected results

It should be represented as SPACE character (0x20) or &#32;.

@tk0miya
Copy link
Member Author

tk0miya commented Feb 24, 2017

Note: docutils.writers.html4css1.Writer generates &nbsp; entity

  • on encode() method (for 0xA0; non breaking space)
  • on visit_entry() method if the table cell is empty

@shibukawa
Copy link
Contributor

.. py:function:: test() -> string

makes &rarr;

@shibukawa
Copy link
Contributor

shibukawa commented Feb 24, 2017

Field-list that has more than limit of field name count characters (default 14)

:abcdefghijklmnopqrstuvwxyz: fieldlist

makes &nbsp;

@shibukawa
Copy link
Contributor

Option-list that has more than limit of option name count characters (default 14)

-a                 all
-b long_long_file  use file

makes &nbsp;

shibukawa pushed a commit to shibukawa/sphinx that referenced this issue Feb 24, 2017
tk0miya added a commit that referenced this issue Feb 24, 2017
@tk0miya tk0miya closed this as completed Feb 24, 2017
shibukawa pushed a commit to shibukawa/sphinx that referenced this issue Feb 24, 2017
shibukawa pushed a commit to shibukawa/sphinx that referenced this issue Feb 25, 2017
tk0miya added a commit that referenced this issue Feb 26, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants