From: Eric Wong Date: Sun, 24 Apr 2016 23:52:00 +0000 (+0000) Subject: view: add extra newline in flat thread view for lynx X-Git-Tag: v1.0.0~596 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=9f60aea345ef60ecb63cac9cea119f1dc869a21b;p=public-inbox.git 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. --- 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 .= ''); }