From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 990B41F859; Sat, 6 Aug 2016 21:09:50 +0000 (UTC) Date: Sat, 6 Aug 2016 21:09:50 +0000 From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] www: use
to delimit messages in /new.html view, too Message-ID: <20160806210950.GA27655@dcvr> References: <20160805181459.24420-1-e@80x24.org> <20160806003041.GA6028@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160806003041.GA6028@dcvr> List-Id: This is necessary to delimit messages when viewed without threading. --- lib/PublicInbox/Feed.pm | 2 +- lib/PublicInbox/View.pm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index a697a43..240c336 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 d6711d5..ed3c96e 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; -- EW