lib/PublicInbox/Feed.pm | 5 +++-- lib/PublicInbox/View.pm | 7 ++++--- diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index e9989e418f3f8dd0d4597391ef6ffab42893c700..0104a6baf70ef97499e37bc3386d1cd292adf29d 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -11,6 +11,7 @@ use PublicInbox::GitCatFile; use constant { DATEFMT => '%Y-%m-%dT%H:%M:%SZ', # atom standard MAX_PER_PAGE => 25, # this needs to be tunable + PRE_WRAP => '
', }; # main function @@ -75,7 +76,7 @@ $th->thread; my $html = "$footer"; } diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 860663111fb00a7e1551c5c663657ca977a09c20..8bc28cd17c5bc8912daf17de46e369b15a6e1318 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -12,6 +12,7 @@ # TODO: make these constants tunable use constant MAX_INLINE_QUOTED => 5; use constant MAX_TRUNC_LEN => 72; +use constant PRE_WRAP => '$title " . '' . - ''; + '' . PRE_WRAP; # sort by date, most recent at top $th->order(sub { @@ -91,7 +92,7 @@ my $footer = nav_footer($args->{cgi}, $last, $feed_opts); my $list_footer = $args->{footer}; $footer .= "\n" . $list_footer if ($footer && $list_footer); - $footer = "" if $footer; $html . "$footer" if $footer; + $footer = "
" . PRE_WRAP . "$footer
'; *ascii_html = *PublicInbox::Hval::ascii_html; @@ -28,7 +29,7 @@ $footer = ''; } headers_to_html_header($mime, $full_pfx) . multipart_text_as_html($mime, $full_pfx) . - '
' . + '