Minor corrections

This commit is contained in:
Tim Bentley 2009-10-22 20:07:32 +01:00
parent 979ba02b02
commit 67ab01df01

View File

@ -173,7 +173,6 @@ class Renderer(object):
page = [] page = []
split_lines = [] split_lines = []
for line in text: for line in text:
split = False
#Must be a blank line so keep it. #Must be a blank line so keep it.
if len(line) == 0: if len(line) == 0:
line = u' ' line = u' '
@ -197,6 +196,7 @@ class Renderer(object):
split_text = line[:pos] split_text = line[:pos]
split_lines.append(split_text) split_lines.append(split_text)
line = line[pos:] line = line[pos:]
#if we have more text add up to 10 spaces on the front.
if len(line) > 0 : if len(line) > 0 :
line = u'%s%s' % \ line = u'%s%s' % \
(u' '[:self._theme.font_main_indentation], line) (u' '[:self._theme.font_main_indentation], line)