fix html entity to fix epub error

This commit is contained in:
Yoshiki Shibukawa
2016-07-21 10:09:01 +09:00
parent 8f162a132e
commit 90b3c79895
10 changed files with 17 additions and 17 deletions

View File

@@ -92,7 +92,7 @@ def verify(rst, html_expected, latex_expected):
def test_inline():
# correct interpretation of code with whitespace
_html = ('<p><code class="(samp )?docutils literal"><span class="pre">'
'code</span>&nbsp;&nbsp; <span class="pre">sample</span></code></p>')
'code</span>&#160;&#160; <span class="pre">sample</span></code></p>')
yield verify_re, '``code sample``', _html, r'\\sphinxcode{code sample}'
yield verify_re, ':samp:`code sample`', _html, r'\\sphinxcode{code sample}'