From 1fa59d40a6ae40c23f935a60725cadebe01d0e5e Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Sat, 18 Jan 2020 22:23:17 +0100 Subject: Bugfix wikipedia style line breaks --- creole/parser/creol2html_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/creole/parser/creol2html_parser.py b/creole/parser/creol2html_parser.py index 6cec8ee..5e7f664 100644 --- a/creole/parser/creol2html_parser.py +++ b/creole/parser/creol2html_parser.py @@ -126,7 +126,7 @@ class CreoleParser(object): text = groups.get('text', "") - if groups.get('space'): + if groups.get('space') and self.cur.children: # use wikipedia style line breaks and seperate a new line with one space text = " " + text -- cgit v1.2.1