mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user