diff doc/rst2man.py @ 9712:18b134ef294c

kill trailing whitespace
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Thu, 05 Nov 2009 10:44:36 +0100
parents 816564f5dea9
children 8bba9157b30a
line wrap: on
line diff
--- a/doc/rst2man.py	Thu Nov 05 01:11:28 2009 +0100
+++ b/doc/rst2man.py	Thu Nov 05 10:44:36 2009 +0100
@@ -8,7 +8,7 @@
 Simple man page writer for reStructuredText.
 
 Man pages (short for "manual pages") contain system documentation on unix-like
-systems. The pages are grouped in numbered sections: 
+systems. The pages are grouped in numbered sections:
 
  1 executable programs and shell commands
  2 system calls
@@ -140,7 +140,7 @@
         text.append('|%s|.\n' % ('|'.join(self._coldefs)))
         for row in self._rows:
             # row = array of cells. cell = array of lines.
-            text.append('_\n')       # line above 
+            text.append('_\n')       # line above
             text.append('T{\n')
             for i in range(len(row)):
                 cell = row[i]
@@ -184,8 +184,8 @@
                 "title" : "", "title_upper": "",
                 "subtitle" : "",
                 "manual_section" : "", "manual_group" : "",
-                "author" : [], 
-                "date" : "", 
+                "author" : [],
+                "date" : "",
                 "copyright" : "",
                 "version" : "",
                     }
@@ -216,7 +216,7 @@
                 'literal_block' : ('.sp\n.nf\n.ft C\n', '\n.ft P\n.fi\n'),
 
                 'option_list_item' : ('.TP\n', ''),
-                
+
                 'reference' : (r'\%', r'\:'),
                 'emphasis': ('\\fI', '\\fP'),
                 'strong' : ('\\fB', '\\fP'),
@@ -263,7 +263,7 @@
                 elif (self.body[i-1][:3] == '.B ' and
                     self.body[i-2][:4] == '.TP\n'):
                     self.body[i] = '.\n'
-                elif (self.body[i-1] == '\n' and 
+                elif (self.body[i-1] == '\n' and
                     self.body[i-2][0] != '.' and
                     (self.body[i-3][:7] == '.TP\n.B '
                         or self.body[i-3][:4] == '\n.B ')
@@ -564,10 +564,10 @@
 
     def depart_document(self, node):
         if self._docinfo['author']:
-            self.body.append('.SH AUTHOR\n%s\n' 
+            self.body.append('.SH AUTHOR\n%s\n'
                     % ', '.join(self._docinfo['author']))
         skip = ('author', 'copyright', 'date',
-                'manual_group', 'manual_section', 
+                'manual_group', 'manual_section',
                 'subtitle',
                 'title', 'title_upper', 'version')
         for name in self._docinfo_keys:
@@ -587,7 +587,7 @@
                     label = self.language.labels.get(name, name)
                 self.body.append("\n%s: %s\n" % (label, self._docinfo[name]) )
         if self._docinfo['copyright']:
-            self.body.append('.SH COPYRIGHT\n%s\n' 
+            self.body.append('.SH COPYRIGHT\n%s\n'
                     % self._docinfo['copyright'])
         self.body.append( self.comment(
                         'Generated by docutils manpage writer.\n' ) )
@@ -896,7 +896,7 @@
     def visit_paragraph(self, node):
         # ``.PP`` : Start standard indented paragraph.
         # ``.LP`` : Start block paragraph, all except the first.
-        # ``.P [type]``  : Start paragraph type. 
+        # ``.P [type]``  : Start paragraph type.
         # NOTE dont use paragraph starts because they reset indentation.
         # ``.sp`` is only vertical space
         self.ensure_eol()