changeset 9627:4515761ea531

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.
author Martin Geisler <mg@lazybytes.net>
date Thu, 22 Oct 2009 00:27:08 +0200
parents d1aa5393bef4
children 816564f5dea9
files doc/rst2man.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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'),