Fix #8446: html: consecutive spaces are displayed as single space

In HTML, consecutive spaces are considered as single space by HTML
browsers.  To represent them as is, we have to escape them on rendering
them into HTML.  This starts to escape the whole of desc_signature node.
This commit is contained in:
Takeshi KOMIYA
2020-11-22 19:01:57 +09:00
parent 24a329eebe
commit 96fe4c110c
5 changed files with 13 additions and 6 deletions

View File

@@ -250,10 +250,10 @@ def test_missing_reference_cppdomain(tempdir, app, status, warning):
'<span class="pre">Bar</span></code></a>' in html)
assert ('<a class="reference external"'
' href="https://docs.python.org/index.html#foons"'
' title="(in foo v2.0)">foons</a>' in html)
' title="(in foo v2.0)"><span class="pre">foons</span></a>' in html)
assert ('<a class="reference external"'
' href="https://docs.python.org/index.html#foons_bartype"'
' title="(in foo v2.0)">bartype</a>' in html)
' title="(in foo v2.0)"><span class="pre">bartype</span></a>' in html)
def test_missing_reference_jsdomain(tempdir, app, status, warning):