]> Sergey Matveev's repositories - public-inbox.git/commitdiff
feed: extra newline after nav footer if list footer exists
authorEric Wong <e@80x24.org>
Tue, 1 Sep 2015 20:33:23 +0000 (20:33 +0000)
committerEric Wong <e@80x24.org>
Tue, 1 Sep 2015 20:34:51 +0000 (20:34 +0000)
It makes sense to distinguish the two a little.

lib/PublicInbox/Feed.pm

index 961588020bdf4decca519d179413e94af5d5f278..8fc65fb55b3095f3cdfea881d22aa599a6760cfe 100644 (file)
@@ -158,7 +158,7 @@ sub emit_html_index {
        my $footer = nav_footer($ctx->{cgi}, $last, $feed_opts, $state);
        if ($footer) {
                my $list_footer = $ctx->{footer};
-               $footer .= "\n" . $list_footer if $list_footer;
+               $footer .= "\n\n" . $list_footer if $list_footer;
                $footer = "<hr /><pre>$footer</pre>";
        }
        $fh->write(dump_topics($topics)) if $topics;