X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=apps%2Fpatchwork%2Fparser.py;fp=apps%2Fpatchwork%2Fparser.py;h=16cc30851e6cc8f38e34cb0e66491cdd84bf347c;hb=6cf42625073d11bd63adc681a4d141a932925d0e;hp=abec782f4f7c75cf74d7a83ef73b07f680addbdd;hpb=d45218b2e3894211e11313820bea9f59677c4bf2;p=patchwork 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