Skip to content

Commit

Permalink
attempt to fix parsing of LilyPond output on Windows
Browse files Browse the repository at this point in the history
Issue #112 reported a failure of parsing of the temporary
sanitised.ly.out file on Windows due to semi-colons in file paths, and
also possibly CR LF line-endings.  So attempt to fix both these
problems.
  • Loading branch information
aspiers committed May 20, 2023
1 parent 5d78897 commit 15c325b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ly2video/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ def getLeftmostGrobsByMoment(output, dpi, leftPaperMarginPx):
# delimiter
'\\s+from\\s+'
# file:line:char
'([^:]+): *(\d+):(\d+)'
'$', line)
'(.+): *(\d+):(\d+)'
'\\r?$', line)
if not m:
bug("Failed to parse ly2video line:\n%s" % line)
left, right, octave, notename, alteration, moment, filename, line, column = m.groups()
Expand Down

0 comments on commit 15c325b

Please sign in to comment.