mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Replace no-break spaces with normal ones inside desc_parameters for Texinfo.
This commit is contained in:
parent
10e0fb8ad9
commit
584dc31883
@ -1318,7 +1318,10 @@ class TexinfoTranslator(nodes.NodeVisitor):
|
|||||||
self.body.append(', ')
|
self.body.append(', ')
|
||||||
else:
|
else:
|
||||||
self.first_param = 0
|
self.first_param = 0
|
||||||
self.body.append(self.escape(node.astext()))
|
text = self.escape(node.astext())
|
||||||
|
# replace no-break spaces with normal ones
|
||||||
|
text = text.replace(u' ', '@w{ }')
|
||||||
|
self.body.append(text)
|
||||||
raise nodes.SkipNode
|
raise nodes.SkipNode
|
||||||
|
|
||||||
def visit_desc_optional(self, node):
|
def visit_desc_optional(self, node):
|
||||||
|
Loading…
Reference in New Issue
Block a user