changeset 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 819e6c7085fc
children dd1a95ccbe07
files doc/rst2man.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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 ')