about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-09-07 07:53:47 +0000
committerEric Wong <e@80x24.org>2014-09-07 07:53:47 +0000
commit3e9e1b30f3d25adf7e1ffee1047efb01870378c9 (patch)
treea4441e64c96527f6b3ef29cd5da830412d841b94 /lib
parentb9e8a5d04ba96836e66c382884987888f116458f (diff)
downloadpublic-inbox-3e9e1b30f3d25adf7e1ffee1047efb01870378c9.tar.gz
Sometimes, the subject says it all.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/View.pm8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 2e7c8747..5076cf92 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -111,10 +111,12 @@ sub index_entry {
                 $s =~ s/\A\s+//s;
                 $s =~ s/\s+\z//s;
 
-                # add prefix:
-                $s =~ s/^/$pfx/sgm;
+                if (length $s) {
+                        # add prefix:
+                        $s =~ s/^/$pfx/sgm;
 
-                $rv .= $s . "\n";
+                        $rv .= $s;
+                }
                 ++$part_nr;
         });