From f94c3a195a25a31d0215cd175938008fca473378 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 18 Apr 2019 23:31:46 +0000 Subject: view: show "(no subject)" consistently in HTML Empty subjects ("") and undefined Subjects: are now both displayed as "(no subject)" for now. --- lib/PublicInbox/SearchView.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/PublicInbox/SearchView.pm') diff --git a/lib/PublicInbox/SearchView.pm b/lib/PublicInbox/SearchView.pm index 7ef6b075..3b3afdee 100644 --- a/lib/PublicInbox/SearchView.pm +++ b/lib/PublicInbox/SearchView.pm @@ -120,6 +120,7 @@ sub mset_summary { } my $date = PublicInbox::View::fmt_ts($smsg->ds); my $mid = PublicInbox::Hval->new_msgid($smsg->mid)->{href}; + $s = '(no subject)' if $s eq ''; $$res .= qq{$rank. }. $s . "\n"; $$res .= "$pfx - by $f @ $date UTC [$pct%]\n\n"; -- cgit v1.2.3-24-ge0c7