Commit 03bafbc8 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Gracefully handle invalid space characters inside the P&E code (print a...

Gracefully handle invalid space characters inside the P&E code (print a warning, but continue processing)
parent bd658412
......@@ -381,6 +381,10 @@ sub parse_notes {
elsif ($notes =~ s/(\d+\.*)\(((\,|\')*(x|xx|b|bb|n)?\d*\.*(g|q)?(\-|A|B|C|D|E|F|G)t?\+?)\)/\($1$2\)/gs) { # pull duration into fermata parentheses
# print "after replacement: $notes\n"; exit;
}
elsif ($notes =~ /^ +(.*)$/) {
$notes = $1;
print("Invalid space encountered in notes before $notes\n");
}
else {
print_error("got stuck with $notes\n");
$notes = "";
......
Test Composer
Test case for invalid spaces inside Plaine and Easie code
1.1.1: S
plain&easy: %C-1@c$bB '4C DEF/ GAB''C//
Test Library
00000000
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment