From b1ea344564ed1b1cd48a4530155e16abee0a9863 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 9 Jan 2016 09:45:21 +0000 Subject: hval: new should not strip leading spaces We should be able to use this for ASCII art and paragraphs --- lib/PublicInbox/Hval.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/PublicInbox/Hval.pm') diff --git a/lib/PublicInbox/Hval.pm b/lib/PublicInbox/Hval.pm index 5a869358..d295f5ce 100644 --- a/lib/PublicInbox/Hval.pm +++ b/lib/PublicInbox/Hval.pm @@ -21,8 +21,7 @@ my $enc_ascii = find_encoding('us-ascii'); sub new { my ($class, $raw, $href) = @_; - # we never care about leading/trailing whitespace - $raw =~ s/\A\s*//; + # we never care about trailing whitespace $raw =~ s/\s*\z//; bless { raw => $raw, -- cgit v1.2.3-24-ge0c7