about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-04-24 23:52:00 +0000
committerEric Wong <e@80x24.org>2016-04-24 23:54:01 +0000
commit9f60aea345ef60ecb63cac9cea119f1dc869a21b (patch)
tree13bf11ee76550677607530382bbd4c14df81abc2 /lib
parent39b85802aee50831bb4ea8840780b2b9261aec67 (diff)
downloadpublic-inbox-9f60aea345ef60ecb63cac9cea119f1dc869a21b.tar.gz
This shouldn't show up in other browsers (tested with w3m, too),
but the extra newline makes a difference for delineating
messages when viewed with lynx.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/View.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 3b2df463..0e65daca 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -154,13 +154,15 @@ sub index_entry {
         } elsif ($srch) {
                 my $threaded = 'threaded';
                 my $flat = 'flat';
+                my $end = '';
                 if ($ctx->{flat}) {
                         $flat = "<b>$flat</b>";
+                        $end = "\n"; # for lynx
                 } else {
                         $threaded = "<b>$threaded</b>";
                 }
                 $rv .= " [<a\nhref=\"${path}$href/t/#u\">$threaded</a>";
-                $rv .= "|<a\nhref=\"${path}$href/T/#u\">$flat</a>]";
+                $rv .= "|<a\nhref=\"${path}$href/T/#u\">$flat</a>]$end";
         }
         $fh->write($rv .= '</pre>');
 }