do not use the same name twice

This commit is contained in:
Andreas Preikschat 2011-08-29 22:58:32 +02:00
parent ccd0a46e2b
commit 6c7527349d
1 changed files with 3 additions and 3 deletions

View File

@ -255,11 +255,11 @@ class Renderer(object):
# we have to render the first virtual slide.
text_contains_break = u'[---]' in text
if text_contains_break:
html_text, text = text.split(u'\n[---]\n', 1)
text_to_render, text = text.split(u'\n[---]\n', 1)
else:
html_text = text
text_to_render = text
text = u''
lines = html_text.strip(u'\n').split(u'\n')
lines = text_to_render.strip(u'\n').split(u'\n')
slides = self._paginate_slide(lines, line_end)
if len(slides) > 1 and text:
# Add all slides apart from the last one the