1
0
mirror of https://gitlab.com/openlp/openlp.git synced 2024-09-30 20:07:37 +00:00

Do not add the entry attribute to songbooks when there is no song number.

bzr-revno: 1289
This commit is contained in:
Andreas Preikschat 2011-02-10 19:46:27 +00:00 committed by Jon Tibble
commit 63d4842da5

View File

@ -263,6 +263,7 @@ class OpenLyrics(object):
songbooks = etree.SubElement(properties, u'songbooks')
element = self._add_text_to_element(
u'songbook', songbooks, None, book)
if song.song_number:
element.set(u'entry', song.song_number)
if song.topics:
themes = etree.SubElement(properties, u'themes')