diff options
author | Eric Wong <e@80x24.org> | 2014-09-15 20:47:02 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-09-15 20:47:02 +0000 |
commit | 8c61f7e039599b89edc1dea137af8bcf99ee9a49 (patch) | |
tree | 00091f05bda2b8a27ee7bc9868029fa3b53c902a /lib/PublicInbox/Hval.pm | |
parent | d8458d7f5f410799801c541f325e14fd0be5c989 (diff) | |
download | public-inbox-8c61f7e039599b89edc1dea137af8bcf99ee9a49.tar.gz |
We should do this in filter, too, but sometimes we prefer to avoid filtering the message at all.
Diffstat (limited to 'lib/PublicInbox/Hval.pm')
-rw-r--r-- | lib/PublicInbox/Hval.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Hval.pm b/lib/PublicInbox/Hval.pm index 9be163aa..68f89546 100644 --- a/lib/PublicInbox/Hval.pm +++ b/lib/PublicInbox/Hval.pm @@ -55,6 +55,7 @@ my %xhtml_map = ( sub ascii_html { my ($s) = @_; + $s =~ s/\r\n/\n/sg; # fixup bad line endings $s =~ s/([<>&'"])/$xhtml_map{$1}/ge; $enc_ascii->encode($s, Encode::HTMLCREF); } |