]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: do not kill whitespace in permalink thread timestamp
authorEric Wong <e@80x24.org>
Sat, 30 Jan 2016 23:27:18 +0000 (23:27 +0000)
committerEric Wong <e@80x24.org>
Sat, 30 Jan 2016 23:27:18 +0000 (23:27 +0000)
There's no need to HTML escape a timestamp we generate ourselves.
We need to preserve the leading space and can't use the "oneline"
semantics to preserve alignment.

lib/PublicInbox/View.pm

index be186333493341491819a5fb0d86a303c54a0173..e72243be037387b2d799211001fd492a526bccee 100644 (file)
@@ -772,7 +772,6 @@ sub _inline_header {
        my $f = $mime->header('X-PI-From');
        my $d = _msg_date($mime);
        $f = PublicInbox::Hval->new_oneline($f)->as_html;
-       $d = PublicInbox::Hval->new_oneline($d)->as_html;
        my $pfx = ' ' . $d . ' ' . indent_for($level);
        my $attr = $f;
        $state->{first_level} ||= $level;