rst2man: automatically write sections in uppercase
authorMartin Geisler <mg@lazybytes.net>
Sun, 08 Nov 2009 11:41:34 +0100
changeset 9791 8bba9157b30a
parent 9790 819e6c7085fc
child 9792 dd1a95ccbe07
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.
doc/rst2man.py
--- 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 ')