changeset 6:c4619fedabbb

fix the bug introduced by previous fix, where text after block elements wouldn't create paragraphs.
author sheep@ghostwheel
date Fri, 17 Apr 2009 00:29:25 +0200
parents cd6792e396f5
children 55a1afaf1f66
files creole.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/creole.py	Fri Apr 17 00:19:11 2009 +0200
+++ b/creole.py	Fri Apr 17 00:29:25 2009 +0200
@@ -264,7 +264,7 @@
             'number_list'):
             self.cur = self._upto(self.cur,
                 ('document', 'section', 'blockquote'))
-        elif self.cur.kind in ('document', 'section', 'blockquote'):
+        if self.cur.kind in ('document', 'section', 'blockquote'):
             self.cur = DocNode('paragraph', self.cur)
         else:
             text = u' ' + text