From 9f60aea345ef60ecb63cac9cea119f1dc869a21b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 24 Apr 2016 23:52:00 +0000 Subject: [PATCH] view: add extra newline in flat thread view for lynx 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. --- lib/PublicInbox/View.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = "$flat"; + $end = "\n"; # for lynx } else { $threaded = "$threaded"; } $rv .= " [$threaded"; - $rv .= "|$flat]"; + $rv .= "|$flat]$end"; } $fh->write($rv .= ''); } -- 2.48.1