diff options
author | Eric Wong <e@80x24.org> | 2014-09-15 20:58:41 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-09-15 20:58:41 +0000 |
commit | 1a4da197b5390141ae338d80199112b256b140ba (patch) | |
tree | 61fc84a8bc5d8f1ccfb3c8cdff08e5579e6c20a2 /lib | |
parent | a4cea21b8bde2897786a8fab4b33b669b935011c (diff) | |
download | public-inbox-1a4da197b5390141ae338d80199112b256b140ba.tar.gz |
Unix line endings are LF-only, so do not introduce or preserve CRLF line endings when reading from lynx.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/Filter.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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: |