]> Sergey Matveev's repositories - public-inbox.git/commit
hval: ascii_html: drop CRLF => LF conversion
authorEric Wong <e@yhbt.net>
Mon, 24 Feb 2020 07:33:26 +0000 (07:33 +0000)
committerEric Wong <e@yhbt.net>
Mon, 24 Feb 2020 18:30:11 +0000 (18:30 +0000)
commitaf8434f5f729a541cf8c50dfcb7d96a413facd2b
tree9fe98c3fce6e91b67496a1e7c2aec1f90e2420ca
parentdf0fee8ed3892fb1258d87add809f40bebd3dce2
hval: ascii_html: drop CRLF => LF conversion

Instead, we add CRLF conversion to the only remaining place
which needs it, ViewVCS.  This save many redundant ops in in
many places.

The only other place where this mattered was in
View::add_text_body, but we already started doing CRLF
conversions when we added diff parsing and link generation for
ViewVCS.  Otherwise, all other places we used this was for
header viewing and Email::MIME doesn't preserve CRLF in headers.
lib/PublicInbox/Hval.pm
lib/PublicInbox/ViewVCS.pm
t/plack.t