mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #1192: Fix escaping problem for hyperlinks in the manpage writer.
This commit is contained in:
parent
ee2c8d01c2
commit
f784d763d2
5
CHANGES
5
CHANGES
@ -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
|
||||
|
@ -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', '')
|
||||
|
Loading…
Reference in New Issue
Block a user