rst2man: avoid italic for references
authorMartin Geisler <mg@lazybytes.net>
Thu, 22 Oct 2009 00:27:08 +0200
changeset 9627 4515761ea531
parent 9626 d1aa5393bef4
child 9628 816564f5dea9
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: <roman> text <italic> <bold> hg <italic> (1) <bold> more text with no switch back to roman. This stops the bleeding and removes the ugly italic (underline) from the manpage links.
doc/rst2man.py
--- a/doc/rst2man.py	Wed Oct 21 23:40:01 2009 +0200
+++ b/doc/rst2man.py	Thu Oct 22 00:27:08 2009 +0200
@@ -217,7 +217,7 @@
 
                 'option_list_item' : ('.TP\n', ''),
                 
-                'reference' : (r'\fI\%', r'\fP'),
+                'reference' : (r'\%', r'\:'),
                 'emphasis': ('\\fI', '\\fP'),
                 'strong' : ('\\fB', '\\fP'),
                 'term' : ('\n.B ', '\n'),