diff options
author | Eric Wong <e@80x24.org> | 2014-08-31 02:58:07 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-08-31 02:58:07 +0000 |
commit | ee8ef957fe606280baaa03700779b43e5408a8fa (patch) | |
tree | e15b17a5da54be226c2203370f6ecd3713f4a9ac | |
parent | f6835e9f41767954aba54cd478132407a3e48617 (diff) | |
download | public-inbox-ee8ef957fe606280baaa03700779b43e5408a8fa.tar.gz |
Leading whitespace is pointless, but some folks end up adding it for some reason.
-rw-r--r-- | lib/PublicInbox/View.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index c1a5fbb1..1fb40068 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -113,7 +113,8 @@ sub index_entry { $more = "$pfx...\n"; } - # kill any trailing whitespace + # kill any leading or trailing whitespace + $s =~ s/\A\s+//s; $s =~ s/\s+\z//s; # add prefix: |