From af0c513d49bae691f636b00efd1635b565b40c9d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 16 Aug 2015 20:51:05 +0000 Subject: view: kill leading empty lines correctly Was too sleepy to be coding last night :x --- lib/PublicInbox/View.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index e1632b5b..6e4d1789 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -143,7 +143,7 @@ sub index_walk { $s =~ s/^-- \n.*\z//ms and $$more = 'more...'; # kill any leading or trailing whitespace lines - $s =~ s/^[ \t]$//sgm; + $s =~ s/^\s*$//sgm; $s =~ s/\s+\z//s; if (length $s) { -- cgit v1.2.3-24-ge0c7