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.pm10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 4ac28346..18ba36a8 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -8,13 +8,13 @@ use CGI qw/escapeHTML/;
 use Encode qw/decode encode/;
 use Encode::MIME::Header;
 
-# only one public function:
+# public functions:
 sub as_html {
         my ($class, $mime, $full_pfx) = @_;
 
         headers_to_html_header($mime) .
                 multipart_text_as_html($mime, $full_pfx) .
-                "</pre>\n";
+                '</pre>';
 }
 
 sub as_feed_entry {
@@ -150,10 +150,8 @@ sub headers_to_html_header {
         }
         $rv .= "\n";
 
-        return ("<html><head><title>".
-                join(' - ', @title) .
-                '</title></head><body><pre style="white-space:pre-wrap">' .
-                $rv);
+        ("<html><head><title>".  join(' - ', @title) .
+         '</title></head><body><pre style="white-space:pre-wrap">' .  $rv);
 }
 
 1;