We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d090afd commit 0b34986Copy full SHA for 0b34986
lib/fdiff/color.py
@@ -24,13 +24,13 @@ def color_unified_diff_line(line):
24
on the unified diff line type."""
25
if line[0:2] == "+ ":
26
return f"{green_start}{line}{reset}"
27
- elif line == f"+{os.linesep}":
+ elif line == "+\n":
28
# some lines are formatted as hyphen only with no other characters
29
# this indicates an added empty line
30
31
elif line[0:2] == "- ":
32
return f"{red_start}{line}{reset}"
33
- elif line == f"-{os.linesep}":
+ elif line == "-\n":
34
35
# this indicates a deleted empty line
36
0 commit comments