X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=apps%2Fpatchwork%2Fparser.py;fp=apps%2Fpatchwork%2Fparser.py;h=f4605668e67a78f9f7cbd1a5e4018251ba2caf17;hb=b76f7dd32ef83d55ace2f38ed84f5fc76e65e18e;hp=2b5e9a093c478756d65ef001cdb59e48eb0af0c5;hpb=0f3b76430ad276e8956ac388452e007d501cc54d;p=patchwork diff --git a/apps/patchwork/parser.py b/apps/patchwork/parser.py index 2b5e9a0..f460566 100644 --- a/apps/patchwork/parser.py +++ b/apps/patchwork/parser.py @@ -68,7 +68,7 @@ def parse_patch(text): line += '\n' if state == 0: - if line.startswith('diff') or line.startswith('===') \ + if line.startswith('diff ') or line.startswith('===') \ or line.startswith('Index: '): state = 1 buf += line