Closes #1192: Fix escaping problem for hyperlinks in the manpage writer.

This commit is contained in:
Georg Brandl 2013-09-16 10:55:46 +02:00
parent ee2c8d01c2
commit f784d763d2
2 changed files with 6 additions and 3 deletions

View File

@ -38,6 +38,8 @@ Bugs fixed
encoded strings.
* #828: use inspect.getfullargspec() to be able to document functions with
keyword-only arguments on Python 3.
* #1090: Fix i18n: multiple cross references (term, ref, doc) in the same line
return the same link.
* #1157: Combination of 'globaltoc.html' and hidden toctree caused exception.
* #1159: fix wrong generation of objects inventory for Python modules, and
add a workaround in intersphinx to fix handling of affected inventories.
@ -53,8 +55,7 @@ Bugs fixed
characters to "Project name" on quickstart.
* #1190: Output TeX/texinfo/man filename has no basename (only extension)
when using multibyte characters in the "Project name" on quickstart.
* #1090: Fix i18n: multiple cross references (term, ref, doc) in the same line
return the same link.
* #1192: Fix escaping problem for hyperlinks in the manpage writer.
* #1193: Fix i18n: multiple link references in the same line return the same
link.
* #1176: Fix i18n: footnote reference number missing for auto numbered named

View File

@ -233,7 +233,9 @@ class ManualPageTranslator(BaseTranslator):
# overwritten -- don't visit inner marked up nodes
def visit_reference(self, node):
self.body.append(self.defs['reference'][0])
self.body.append(node.astext())
self.visit_Text(node) # avoid repeating escaping code... fine since
# visit_Text calls astext() and only works
# on that afterwards
self.body.append(self.defs['reference'][1])
uri = node.get('refuri', '')