Skip to content

Commit

Permalink
implemented a fix for whitespace issue proycon/folia#101 using a new …
Browse files Browse the repository at this point in the history
…IMPLICITSPACE property
  • Loading branch information
proycon committed Aug 19, 2021
1 parent 18d17a8 commit 8e94e97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion folia/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1483,7 +1483,7 @@ def text(self, cls='current', retaintokenisation=False, previousdelimiter="",str
s += e
elif e.PRINTABLE:
if pendingspace:
if not isinstance(e, (Linebreak, Whitespace)):
if not e.IMPLICITSPACE:
s += " "
pendingspace = False
if s:
Expand Down

0 comments on commit 8e94e97

Please sign in to comment.