* lib/tap-driver (extract_tap_comment): Pass the `g' flag to the
substitution operator, to strip also trailing whitespaces. Fixes
a failure in test `tap-whitespace-normalization.test'.
+2011-08-06 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ tap: fix whitespace munging of diagnostic messages
+ * lib/tap-driver (extract_tap_comment): Pass the `g' flag to the
+ substitution operator, to strip also trailing whitespaces. Fixes
+ a failure in test `tap-whitespace-normalization.test'.
+
2011-08-05 Stefano Lattarini <stefano.lattarini@gmail.com>
tap: fix typo in TAP driver version message
local $_ = shift;
if (/^\Q$diag_string\E(.*)$/o)
{
- (my $comment = $1) =~ s/(?:^\s*|\s*$)//;
+ (my $comment = $1) =~ s/(?:^\s*|\s*$)//g;
return $comment;
}
return "";