2302N/Arst2man does a poor job of creating man pages that can be read on Solaris.
2302N/ASome of the changes in this patch make the Solaris *roff tools do the right
2302N/A - Getting rid of the rst2man header before the SYNOPSIS
2302N/A - Changing "\(aq" to "'", and making sure that single quotes don't start
2302N/A a line (at least in a couple of places where it's not safe)
2302N/A - Changing ".ft C" and ".ft P" to simply ".ft"
2302N/AGroff also seems to have as much trouble with the .INDENT/.UNINDENT macros
2302N/Aas Solaris *roff, de-indenting paragraphs that shouldn't be, so we use
2302N/A.RS/.RE instead. It's not as fancy, but seems to do the job.
2302N/AApplying this patch has no effect in the normal userland build (it can't
2302N/Arun automatically until docutils is delivered), but it enables a "gmake
2302N/A+ self._in_literal_inline = False
2302N/A # ``B`` bold, ``I`` italic, ``R`` roman should be available.
2302N/A # Hopefully ``C`` courier too.
2302N/A- 'indent' : ('.INDENT %.1f\n', '.UNINDENT\n'),
2302N/A+ 'indent' : ('.RS %d\n', '.RE\n'),
2302N/A 'definition_list_item' : ('.TP', ''),
2302N/A 'literal' : ('\\fB', '\\fP'),
2302N/A 'option_list_item' : ('.TP\n', ''),
2302N/A- 'reference' : (r'\%', r'\:'),
2302N/A 'emphasis': ('\\fI', '\\fP'),
2302N/A 'strong' : ('\\fB', '\\fP'),
2302N/A+ # We need to do the same thing for the inline literals, too
2302N/A+ if self._in_literal_inline and text[0] == '.':
2302N/A+ # Single quotes starting a line are harmful, too.
2302N/A def depart_Text(self, node):
2302N/A def visit_address(self, node):
2302N/A def visit_literal(self, node):
2302N/A+ self._in_literal_inline = True
2302N/A def depart_literal(self, node):
2302N/A+ self._in_literal_inline = False
2302N/A def visit_literal_block(self, node):