Skip to content

Commit

Permalink
Trim blank lines on points in Lite compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Mar 1, 2016
1 parent 0cdd3fc commit 3e2f2e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/TestML/Compiler/Lite.pm
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ sub compile_data {
die "Failed to parse TestML string:\n$string_block";
}
$block->{points} ||= {};
$value =~ s/(\r?\n)\s*\z//;
if (length $value) {
$value .= $1;
}
$block->{points}{$key} = $value;

if ($key =~ /^(ONLY|SKIP|LAST)$/) {
Expand Down

0 comments on commit 3e2f2e5

Please sign in to comment.