A fix for a number of historic issues on the tracker:

http://support.openlp.org/issues/475
http://support.openlp.org/issues/492
http://support.openlp.org/issues/661

bzr-revno: 1998
This commit is contained in:
Philip Ridout 2012-06-19 14:59:22 +02:00 committed by Raoul Snyman
commit c0c46ab8a0

View File

@ -187,8 +187,9 @@ class OpenSongImport(SongImport):
content = this_line[1:right_bracket].lower()
# have we got any digits?
# If so, verse number is everything from the digits
# to the end (even if there are some alpha chars on the end)
match = re.match(u'(\D*)(\d+.*)', content)
# to the end (openlp does not have concept of part verses, so
# just ignore any non integers on the end (including floats))
match = re.match(u'(\D*)(\d+)', content)
if match is not None:
verse_tag = match.group(1)
verse_num = match.group(2)