jperon / lyluatex

Alternative à lilypond-book pour lualatex
MIT License
58 stars 12 forks source link

Fix crash with comments in included LilyPond files #198

Closed uliska closed 6 years ago

uliska commented 6 years ago

Closes #197

When including LilyPond files that contain percent characters (i.e. any comments) they cause the flatten_content() function to fail because single percent chars are uncorrectly interpreted as escape characters.

This commit replaces percents with hash characters - which doesn't do any harm as this flattened LilyPond code will never be used by LilyPond, only to generate a hash filename. (OTOH simply removing them might have unwanted side effects).