Skip to content

Commit

Permalink
Fix handling of TeX linebreaks
Browse files Browse the repository at this point in the history
  • Loading branch information
SECtim committed Feb 6, 2024
1 parent 692e0e5 commit 91db419
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions annexlang/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,14 +188,14 @@ def affecting_nodes(self):
@property
def lines_below(self):
if self.text_below.strip():
return self.text_below.strip().replace(r"\\\\", "\n").split("\n")
return self.text_below.strip().replace(r"\\", "\n").split("\n")
else:
return list()

@property
def lines_above(self):
if self.text_above.strip():
return self.text_above.strip().replace(r"\\\\", "\n").split("\n")
return self.text_above.strip().replace(r"\\", "\n").split("\n")
else:
return list()

Expand Down

0 comments on commit 91db419

Please sign in to comment.