diff doc/rst2man.py @ 9791:8bba9157b30a

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.
author Martin Geisler <mg@lazybytes.net>
date Sun, 08 Nov 2009 11:41:34 +0100
parents 18b134ef294c
children d2006e6d1d59
line wrap: on
line diff
--- 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 ')