comparison doc/rst2man.py @ 9628:816564f5dea9

rst2man: highlight inline literals in bold The old code would switch to Courier, but that doesn't really help much in a manpage.
author Martin Geisler <mg@lazybytes.net>
date Thu, 22 Oct 2009 00:30:24 +0200
parents 4515761ea531
children 18b134ef294c
comparison
equal deleted inserted replaced
9627:4515761ea531 9628:816564f5dea9
210 # Hopefully ``C`` courier too. 210 # Hopefully ``C`` courier too.
211 self.defs = { 211 self.defs = {
212 'indent' : ('.INDENT %.1f\n', '.UNINDENT\n'), 212 'indent' : ('.INDENT %.1f\n', '.UNINDENT\n'),
213 'definition_list_item' : ('.TP', ''), 213 'definition_list_item' : ('.TP', ''),
214 'field_name' : ('.TP\n.B ', '\n'), 214 'field_name' : ('.TP\n.B ', '\n'),
215 'literal' : ('\\fC', '\\fP'), 215 'literal' : ('\\fB', '\\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'\%', r'\:'), 220 'reference' : (r'\%', r'\:'),