changeset 9:e13b08d52aa6

really fix the space between multiple lines, add a test for it
author sheep@ghostwheel
date Wed, 29 Apr 2009 20:54:19 +0200
parents ad5f219c2714
children dd59ca504ddf
files creole.py creole2html.py
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/creole.py	Sat Apr 18 08:17:38 2009 +0200
+++ b/creole.py	Wed Apr 29 20:54:19 2009 +0200
@@ -259,7 +259,7 @@
     _head_text_repl = _head_repl
 
     def _text_repl(self, groups):
-        text = groups.get('text', '')+u' '
+        text = groups.get('text', '')
         if self.cur.kind in ('table', 'table_row', 'bullet_list',
             'number_list'):
             self.cur = self._upto(self.cur,
--- a/creole2html.py	Sat Apr 18 08:17:38 2009 +0200
+++ b/creole2html.py	Wed Apr 29 20:54:19 2009 +0200
@@ -22,6 +22,9 @@
 >>> parse(u'test\ntest')
 <p>test test</p>
 
+>>> HtmlEmitter(Parser(u'test\ntest').parse()).emit()
+u'<p>test test</p>\n'
+
 >>> parse(u'test\n\ntest')
 <p>test</p><p>test</p>