changeset 10937:a9d5943d2a30

minirst: removed unnecessary initindent variable
author Martin Geisler <mg@lazybytes.net>
date Sun, 18 Apr 2010 15:47:49 +0200
parents 2853c891ac41
children 2067532d95e7
files mercurial/minirst.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/minirst.py	Sun Apr 18 15:47:49 2010 +0200
+++ b/mercurial/minirst.py	Sun Apr 18 15:47:49 2010 +0200
@@ -289,7 +289,7 @@
         return "%s\n%s" % (term, textwrap.fill(text, width=width,
                                                initial_indent=defindent,
                                                subsequent_indent=defindent))
-    initindent = subindent = indent
+    subindent = indent
     if block['type'] == 'bullet':
         if block['lines'][0].startswith('| '):
             # Remove bullet for line blocks and add no extra
@@ -321,7 +321,7 @@
 
     text = ' '.join(map(str.strip, block['lines']))
     return textwrap.fill(text, width=width,
-                         initial_indent=initindent,
+                         initial_indent=indent,
                          subsequent_indent=subindent)