]> Sergey Matveev's repositories - public-inbox.git/commitdiff
hval: new should not strip leading spaces
authorEric Wong <e@80x24.org>
Sat, 9 Jan 2016 09:45:21 +0000 (09:45 +0000)
committerEric Wong <e@80x24.org>
Sat, 9 Jan 2016 09:46:39 +0000 (09:46 +0000)
We should be able to use this for ASCII art and paragraphs

lib/PublicInbox/Hval.pm

index 5a869358d1b8029d3e2a0a9f4f386b1d26fa5090..d295f5ce3d29fb8d783e2550e75975fe237fcba7 100644 (file)
@@ -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,