Skip to content

Commit

Permalink
Fixed bug in line continuation via backslash in basics.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vthorsteinsson committed Jan 14, 2021
1 parent 1366d08 commit 0f5483a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reynir/basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def lines(self) -> Iterator[str]:
self._line += 1
if s.rstrip().endswith("\\"):
# Backslash at end of line: continuation in next line
accumulator += s.rstrip()[:-1]
accumulator += s.strip()[:-1]
continue
if accumulator:
# Add accumulated text from preceding
Expand Down

0 comments on commit 0f5483a

Please sign in to comment.