]> git.donarmstrong.com Git - lilypond.git/commit
Clear fret-diagram- and harp-pedal-input-strings from whitespace
authorThomas Morley <thomasmorley65@gmail.com>
Sun, 23 Aug 2015 13:24:06 +0000 (15:24 +0200)
committerThomas Morley <thomasmorley65@gmail.com>
Sat, 5 Sep 2015 09:35:59 +0000 (11:35 +0200)
commite2e1656c9d0897fb45a215bdcb96b146100c33e2
treec648aa88afa13ce8d9955da232dc07c51b7491dc
parent5b30a1793b07afeeed877ce97471e6a4a0d69169
Clear fret-diagram- and harp-pedal-input-strings from whitespace

issue 4575

Whitespace-characters are deleted before further processing.

Allows for
\markup \fret-diagram #"s:2;h:5;
6-3;5-5;4-5;3-4;2-3;1-x;"

Also adding errors for typos in fret-diagram with a meaningful message:
\markup \fret-diagram #"s:2;g:r;
6-3;5-5;4-5;3-4;2-3;1-x;"
will return:
fatal error: Unhandled entry in fret-diagram "g:r" in "g:r"

This error would not apply, if something for #\g would be defined
in fret-parse-definition-string somewhere in the future.

Then, the message would be:
fatal error: Unhandled entry in fret-diagram "r" in "g:r"

Something similiar is already in harp-pedals.scm
scm/fret-diagrams.scm
scm/harp-pedals.scm
scm/lily-library.scm