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.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>');
 }