comparison doc/rst2man.py @ 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 a82db54bc3be
children 816564f5dea9
comparison
equal deleted inserted replaced
9626:d1aa5393bef4 9627:4515761ea531
215 'literal' : ('\\fC', '\\fP'), 215 'literal' : ('\\fC', '\\fP'),
216 'literal_block' : ('.sp\n.nf\n.ft C\n', '\n.ft P\n.fi\n'), 216 'literal_block' : ('.sp\n.nf\n.ft C\n', '\n.ft P\n.fi\n'),
217 217
218 'option_list_item' : ('.TP\n', ''), 218 'option_list_item' : ('.TP\n', ''),
219 219
220 'reference' : (r'\fI\%', r'\fP'), 220 'reference' : (r'\%', r'\:'),
221 'emphasis': ('\\fI', '\\fP'), 221 'emphasis': ('\\fI', '\\fP'),
222 'strong' : ('\\fB', '\\fP'), 222 'strong' : ('\\fB', '\\fP'),
223 'term' : ('\n.B ', '\n'), 223 'term' : ('\n.B ', '\n'),
224 'title_reference' : ('\\fI', '\\fP'), 224 'title_reference' : ('\\fI', '\\fP'),
225 225