minirst: removed unnecessary initindent variable

This commit is contained in:
Martin Geisler 2010-04-18 15:47:49 +02:00
parent 63c19fe3c4
commit ccd0b02516

View File

@ -289,7 +289,7 @@ def formatblock(block, width):
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 @@ def formatblock(block, width):
text = ' '.join(map(str.strip, block['lines']))
return textwrap.fill(text, width=width,
initial_indent=initindent,
initial_indent=indent,
subsequent_indent=subindent)