Environment: Microsoft Windows 10 Home, Version 10.0.19043 Build 19043.
I've installed the following versions of LilyPond, with the result
listed:
Version Result
2.20.0 does not add blank lines.
2.22.0 adds blank lines.
2.22.1 adds blank lines.
I haven't tried interim versions 2.21.0 or 2.21.2. I thought it best
to concentrate on the latest release.
I've simplified the test file down to a "Tiny Example" of 2 lines
(filename Simply2Lines.ly):
\version "2.18.0"
% Single line comment.
Using Command Prompt, in the folder containing the LilyPond file, I
used the command:
"C:\Program Files (x86)\LilyPond\usr\bin\python" "\Program Files
(x86)\LilyPond\usr\bin\convert-ly" -e Simply2Lines.ly
The Command Line OUTPUT was:
convert-ly (GNU LilyPond) 2.22.0
convert-ly: Processing `Simply2Lines.ly'...
Applying conversion: 2.19.2, 2.19.7, 2.19.11, 2.19.16, 2.19.22,
2.19.24, 2.19.28, 2.19.29, 2.19.32, 2.19.39, 2.19.40, 2.19.46,
2.19.49, 2.20.0, 2.21.0, 2.21.2, 2.22.0
The resultant file now has 3 lines (one blank line between the
original lines):
\version "2.22.0"
% Single line comment.
All files converted with 2.22.0 or 2.22.1 have extra blank lines
inserted between every original line.
The desired behavior is to change the version string and only the
relevant LilyPond commands without adding blank lines.