about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r--lib/PublicInbox/View.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 5870c9d1..86066311 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -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>' .