Skip to content

Commit

Permalink
add debug to removal of \paper section
Browse files Browse the repository at this point in the history
  • Loading branch information
aspiers committed Oct 27, 2013
1 parent 8fd14b2 commit ce327eb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ly2video.py
Original file line number Diff line number Diff line change
Expand Up @@ -1756,16 +1756,21 @@ def sanitiseLy(lyFile, dumper, width, height, dpi, numStaffLines,

# ignore paper block
elif (line.find("\\paper") != -1 or paperPart):
debug("paperPart: %s" % line.rstrip())
if line.find("\\paper") != -1:
paperPart = True
debug(">> in paperPart")

for char in line:
if char == "{":
bracketsPaper += 1
debug(" bracketsPaper += 1")
elif char == "}":
bracketsPaper -= 1
debug(" bracketsPaper -= 1")
if bracketsPaper == 0:
paperPart = False
debug("<< leaving paperPart")

# add unfoldRepeats right after start of score block
elif re.search("\\\\score\\s*\\{", line):
Expand Down

0 comments on commit ce327eb

Please sign in to comment.