From: Eric Wong Date: Sat, 6 Aug 2016 21:00:40 +0000 (+0000) Subject: www: use
to delimit messages in /new.html view, too X-Git-Tag: v1.0.0~248 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=95a438465b81a89b687ac0c2cabce54a300140a9;p=public-inbox.git www: use
to delimit messages in /new.html view, too This is necessary to delimit messages when viewed without threading. --- diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index a697a432..240c336f 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -59,12 +59,12 @@ sub new_html { } $ctx->{-html_tip} = '
';
 	$ctx->{-upfx} = '';
+	$ctx->{-hr} = 1;
 	PublicInbox::WwwStream->response($ctx, 200, sub {
 		while (my $path = shift @paths) {
 			my $m = do_cat_mail($ctx->{-inbox}, $path) or next;
 			my $more = scalar @paths;
 			my $s = PublicInbox::View::index_entry($m, $ctx, $more);
-			$s .= '
' unless $more; return $s; } new_html_footer($ctx, $last); diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index d6711d5c..ed3c96e8 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -182,6 +182,8 @@ sub index_entry { $rv .= "\t[$flat"; $rv .= "|$threaded]"; $rv .= " $ctx->{s_nr}"; + } else { + $hr = $ctx->{-hr}; } $rv .= $more ? '
' : '
' if $hr;