]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: add newline before list-wide footer
authorEric Wong <e@80x24.org>
Mon, 5 May 2014 01:01:13 +0000 (01:01 +0000)
committerEric Wong <e@80x24.org>
Mon, 5 May 2014 01:01:33 +0000 (01:01 +0000)
Otherwise the reply link gets squished.

lib/PublicInbox/View.pm

index 5870c9d1ad3099ca857f0ab2d6966a2f16cf95d9..860663111fb00a7e1551c5c663657ca977a09c20 100644 (file)
@@ -21,7 +21,11 @@ my $enc_mime = find_encoding('MIME-Header');
 # public functions:
 sub msg_html {
        my ($class, $mime, $full_pfx, $footer) = @_;
-       $footer = '' unless defined $footer;
+       if (defined $footer) {
+               $footer = "\n" . $footer;
+       } else {
+               $footer = '';
+       }
        headers_to_html_header($mime, $full_pfx) .
                multipart_text_as_html($mime, $full_pfx) .
                '</pre><hr /><pre>' .