# HG changeset patch # User Martin Geisler # Date 2009-10-21 22:27:08 # Node ID 4515761ea531797bf1f742a6014779ac8e1a0334 # Parent d1aa5393bef4210ef28b831802e26e77beef4e0e rst2man: avoid italic for references The links to other manpages used both italic and bold text nested within each other. The \fP (select previous font) macro was used incorrectly to "reset" the nested fonts resulting in: text hg (1) more text with no switch back to roman. This stops the bleeding and removes the ugly italic (underline) from the manpage links. diff --git a/doc/rst2man.py b/doc/rst2man.py --- a/doc/rst2man.py +++ b/doc/rst2man.py @@ -217,7 +217,7 @@ class Translator(nodes.NodeVisitor): 'option_list_item' : ('.TP\n', ''), - 'reference' : (r'\fI\%', r'\fP'), + 'reference' : (r'\%', r'\:'), 'emphasis': ('\\fI', '\\fP'), 'strong' : ('\\fB', '\\fP'), 'term' : ('\n.B ', '\n'),