Skip to content

Commit

Permalink
fix: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasrothenberger committed Aug 21, 2024
1 parent 3872b4f commit 7eb0b05
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion discopop_library/LineMapping/diff_modifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ def apply_line_mapping_modifications_from_diff(file_id: int, diff: str) -> None:
# get cleaned diff
cleaned_diff: List[str] = []
for line in diff.split("\n"):
if line.startswith("<") or line.startswith(">") or line.startswith("-") or len(line) == 0:
if (
line.startswith("<")
or line.startswith(">")
or line.startswith("-")
or line.startswith("\\")
or len(line) == 0
):
continue
line = line.replace("\n", "")
cleaned_diff.append(line)
Expand Down

0 comments on commit 7eb0b05

Please sign in to comment.