From 1a4da197b5390141ae338d80199112b256b140ba Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 15 Sep 2014 20:58:41 +0000 Subject: filter: ensure CRs do not show up in lynx conversions Unix line endings are LF-only, so do not introduce or preserve CRLF line endings when reading from lynx. --- lib/PublicInbox/Filter.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/PublicInbox/Filter.pm b/lib/PublicInbox/Filter.pm index e784cded..929a8ffc 100644 --- a/lib/PublicInbox/Filter.pm +++ b/lib/PublicInbox/Filter.pm @@ -97,6 +97,7 @@ sub dump_html { push @cmd, "-assume_charset=$charset"; } if (IPC::Run::run(\@cmd, $body, \$out, \$err)) { + $out =~ s/\r\n/\n/sg; $$body = $out; } else { # give them an ugly version: -- cgit v1.2.3-24-ge0c7