Reported by Renaud Flavigny.
The output directory name sometimes contain spaces or other characters
that should be escaped, but lilypond-book does not escape characters
neither quote the snippets file name, which makes lilypond crash.
The bug can be reproduced by writing an input file test.tex in a
directory path that contains spaces and running "lilypond-book
--output=out test.tex".
'snippet-names-%d.ly' % checksum)
file (name, 'wb').write (contents)
- system_in_directory (' '.join ([cmd, name]),
+ system_in_directory (' '.join ([cmd, ly.mkarg (name)]),
lily_output_dir)