]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchview: add missing newline in search results
authorEric Wong <e@80x24.org>
Fri, 1 Jul 2016 00:20:20 +0000 (00:20 +0000)
committerEric Wong <e@80x24.org>
Fri, 1 Jul 2016 00:30:30 +0000 (00:30 +0000)
Hrm... is there a more obvious way to do an internal API for
this while still being streamable?

lib/PublicInbox/SearchView.pm

index d019a0f1431d50cb0bbbec8501d55b8bba4a2f29..ce1eff1ed13a11b2981aa65b14a7a925fdff439b 100644 (file)
@@ -191,7 +191,8 @@ sub mset_thread {
                }
                if ($mime) {
                        $mime = Email::MIME->new($mime);
-                       return PublicInbox::View::index_entry($mime, $ctx);
+                       return PublicInbox::View::index_entry($mime, $ctx,
+                               scalar @$msgs);
                }
                $msgs = undef;
                $skel .= "\n</pre>";