From b52d0aafd5da669a9ee5436663e18e0558a0bbd5 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Sun, 9 Jan 2011 20:18:08 +0100 Subject: [PATCH] re.compile code from reindex tool --- openlp/plugins/songs/lib/mediaitem.py | 7 +++---- openlp/plugins/songs/lib/xml.py | 5 +++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/openlp/plugins/songs/lib/mediaitem.py b/openlp/plugins/songs/lib/mediaitem.py index 3f3755d14..73c8eaa10 100644 --- a/openlp/plugins/songs/lib/mediaitem.py +++ b/openlp/plugins/songs/lib/mediaitem.py @@ -351,8 +351,7 @@ class SongMediaItem(MediaManagerItem): service_item.theme = song.theme_name service_item.edit_id = item_id if song.lyrics.startswith(u'') properties = etree.SubElement(song_xml, u'properties') titles = etree.SubElement(properties, u'titles') - self._add_text_to_element(u'title', titles, song.title) + self._add_text_to_element(u'title', titles, song.title.strip()) if song.alternate_title: - self._add_text_to_element(u'title', titles, song.alternate_title) + self._add_text_to_element( + u'title', titles, song.alternate_title.strip()) if song.comments: comments = etree.SubElement(properties, u'comments') self._add_text_to_element(u'comment', comments, song.comments)