Browse Source

Correction d'un bug apparaissant lorsqu'un carnet ne contenait aucune chanson

pull/3/head
Louis 11 years ago
parent
commit
d073c72ad3
  1. 9
      songbook/index.py

9
songbook/index.py

@ -43,11 +43,10 @@ def processSXD(filename):
i = 1
idx = index(data[0])
if len(data) > 1:
while data[i].startswith('%'):
keywords = keywordPattern.match(data[i]).groups()
idx.keyword(keywords[0],keywords[1])
i += 1
while len(data) > i and data[i].startswith('%'):
keywords = keywordPattern.match(data[i]).groups()
idx.keyword(keywords[0],keywords[1])
i += 1
idx.compileKeywords()
for i in range(i,len(data),3):

Loading…
Cancel
Save