]> Sergey Matveev's repositories - public-inbox.git/commit
viewdiff: do not break out of DSTATE_CTX on /^$/
authorEric Wong <e@80x24.org>
Fri, 26 Apr 2019 07:42:24 +0000 (07:42 +0000)
committerEric Wong <e@80x24.org>
Fri, 26 Apr 2019 07:42:24 +0000 (07:42 +0000)
commit0195eb10a0cb74ebe098b4596e8e78d0544df6fb
treed9a349e6c524851a24d4607db06b6d482af44301
parent31f2f298fe245d5762101bc229416b26c4e85679
viewdiff: do not break out of DSTATE_CTX on /^$/

It seems a common case for mangled patches is editors or MUAs
dropping trailing whitespace, and lines matching /^ $/ gets
the space dropped to only match /^$/.
lib/PublicInbox/ViewDiff.pm