PatchingInputAccessor: Allow empty lines in patches

This commit is contained in:
Eelco Dolstra 2022-06-10 12:44:50 +02:00
parent baee9fe7a2
commit 2b30df7b46
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -47,7 +47,8 @@ struct PatchingInputAccessor : InputAccessor
|| hasPrefix(line, "@@") || hasPrefix(line, "@@")
|| hasPrefix(line, "+") || hasPrefix(line, "+")
|| hasPrefix(line, "-") || hasPrefix(line, "-")
|| hasPrefix(line, " "))) || hasPrefix(line, " ")
|| line.empty()))
{ {
flush(); flush();
} }