Skip to content
Snippets Groups Projects
Commit 900956f2 authored by Philip Kaluđerčić's avatar Philip Kaluđerčić :u7121:
Browse files

Don't chomp input by default

parent fa64a515
No related branches found
No related tags found
No related merge requests found
......@@ -39,8 +39,6 @@ sub add {
}
while (<>) {
chomp;
if (/^\s*#/) {
# ignore comments
} elsif (/^.$/) {
......@@ -84,7 +82,7 @@ while (<>) {
"correct" => $1 eq "+" ? JSON::true : $1 eq "-" ? JSON::false : JSON::null
);
} elsif (/^.+$/) { # non-empty line
$last_option{"comment"} .= "$_\n";
$last_option{"comment"} .= $_;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment