Skip to content

Commit

Permalink
Bugfix wikipedia style line breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jedie committed Jan 18, 2020
1 parent d3821b6 commit 1fa59d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion creole/parser/creol2html_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _text_repl(self, groups):

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

Expand Down

0 comments on commit 1fa59d4

Please sign in to comment.