summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/patchwork/parser.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/patchwork/parser.py b/apps/patchwork/parser.py
index abec782..16cc308 100644
--- a/apps/patchwork/parser.py
+++ b/apps/patchwork/parser.py
@@ -133,6 +133,9 @@ def parse_patch(text):
lc[0] -= 1
elif line.startswith('+'):
lc[1] -= 1
+ elif line.startswith('\ No newline at end of file'):
+ # Special case: Not included as part of the hunk's line count
+ pass
else:
lc[0] -= 1
lc[1] -= 1