@@ -82,7 +82,7 @@ Function CallLilyPond() As Boolean
82
82
83
83
ElseIf sOSType = " Windows" Then
84
84
85
- sCommand = " cd /d " & Chr(34) & ConvertFromURL(sTmpPath) & Chr(34) & Chr(10) _
85
+ sCommand = " cd /d " & Chr(34) & ConvertFromURL(sTmpPath) & Chr(34) & Chr(10) & Chr(13) _
86
86
& Chr(34) & sLilyPondExecutable & Chr(34) & " -dno-point-and-click"
87
87
If Len(sIncludeStatement) > 0 Then
88
88
sCommand = sCommand & " " & sIncludeStatement
@@ -91,21 +91,21 @@ Function CallLilyPond() As Boolean
91
91
If bTransparentBackground Then
92
92
sCommand = sCommand & " -dno-delete-intermediate-files -dpixmap-format=pngalpha --png " & sBackendOpt & " -dresolution=" _
93
93
& iGraphicDPI & " "& Chr(34) & ConvertFromURL(sTmpPath) & constOLyFileName & " .ly" & Chr (34) _
94
- & " >" & constOLyFileName & " .out 2>& 1" & Chr(10)
94
+ & " >" & constOLyFileName & " .out 2>& 1" & Chr(10) & Chr(13 )
95
95
Else
96
96
sCommand = sCommand & " -dno-delete-intermediate-files --png " & sBackendOpt & " -dresolution=" _
97
97
& iGraphicDPI & " " & Chr(34) & ConvertFromURL(sTmpPath) & constOLyFileName & " .ly" & Chr (34) _
98
- & " >" & constOLyFileName & " .out 2>& 1" & Chr(10)
98
+ & " >" & constOLyFileName & " .out 2>& 1" & Chr(10) & Chr(13 )
99
99
End If
100
100
ElseIf sFormat=" eps" Then
101
101
sCommand = sCommand & " " & sBackendOpt & " -f eps " & Chr(34) & ConvertFromURL(sTmpPath) & constOLyFileName & " .ly" & Chr (34) _
102
- & " >" & constOLyFileName & " .out 2>& 1" & Chr(10)
102
+ & " >" & constOLyFileName & " .out 2>& 1" & Chr(10) & Chr(13)
103
103
ElseIf sFormat=" svg" Then
104
104
sCommand = sCommand & " " & sBackendOpt & " " & Chr(34) & ConvertFromURL(sTmpPath) & constOLyFileName & " .ly" & Chr (34) _
105
- & " >" & constOLyFileName & " .out 2>& 1" & Chr(10)
105
+ & " >" & constOLyFileName & " .out 2>& 1" & Chr(10) & Chr(13)
106
106
End If
107
- sCommand=sCommand & " if %ERRORLEVEL% equ 9009 echo cannot execute > LilyPond-cannot_execute" & Chr(10) _
108
- & " if %ERRORLEVEL% equ 3 echo cannot execute > LilyPond-cannot_execute" & Chr(10)
107
+ sCommand=sCommand & " if %ERRORLEVEL% equ 9009 echo cannot execute > LilyPond-cannot_execute" & Chr(10) & Chr(13) _
108
+ & " if %ERRORLEVEL% equ 3 echo cannot execute > LilyPond-cannot_execute" & Chr(10) & Chr(13)
109
109
' ToDo: 9009 and 3 OK? Other errors? Wrong Permissions?
110
110
WindowsCommand(sCommand)
111
111
0 commit comments