From 0bcf715b7ef1e51bf05eeb46b066be8a762e13aa Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 9 Jan 2016 09:45:20 +0000 Subject: hval: use more appropriate hvals for documentation Not needed, but this is good documentation. Some of these values should never have newlines. --- lib/PublicInbox/View.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/PublicInbox/View.pm') diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 4fc8ffc3..829806d8 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -768,8 +768,8 @@ sub _inline_header { my $mid = mid_clean($mime->header('Message-ID')); my $f = $mime->header('X-PI-From'); my $d = _msg_date($mime); - $f = PublicInbox::Hval->new($f)->as_html; - $d = PublicInbox::Hval->new($d)->as_html; + $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; @@ -902,7 +902,7 @@ sub dump_topics { my ($level, $subj, $topic) = @$info; my $n = delete $subjs->{$topic}; my ($mid, $ts) = @{delete $latest->{$topic}}; - $mid = PublicInbox::Hval->new($mid)->as_href; + $mid = PublicInbox::Hval->new_msgid($mid)->as_href; $subj = PublicInbox::Hval->new($subj)->as_html; $pfx = indent_for($level); my $nl = $level == $prev ? "\n" : ''; -- cgit v1.2.3-24-ge0c7