rst2man: automatically write sections in uppercase
Man pages have uppercased section titles but other formats do not.
Letting rst2man handle the tranformation allows better reuse of text
between man pages and other formats.
--- a/doc/rst2man.py Sun Nov 08 00:11:34 2009 +0100
+++ b/doc/rst2man.py Sun Nov 08 11:41:34 2009 +0100
@@ -1048,6 +1048,7 @@
raise nodes.SkipNode
elif self.section_level == 1:
self.body.append('.SH ')
+ node[:] = nodes.Text(node.astext().upper())
else:
self.body.append('.SS ')