forked from openlp/openlp
Bug #910860: Strip spaces from author name on CCLI import
This commit is contained in:
parent
c3fde5ec65
commit
35f649782b
@ -216,9 +216,9 @@ class CCLIFileImport(SongImport):
|
|||||||
for author in author_list:
|
for author in author_list:
|
||||||
separated = author.split(u',')
|
separated = author.split(u',')
|
||||||
if len(separated) > 1:
|
if len(separated) > 1:
|
||||||
self.addAuthor(u' '.join(reversed(separated)))
|
author = u' '.join(
|
||||||
else:
|
[name.strip() for name in reversed(separated)])
|
||||||
self.addAuthor(author)
|
self.addAuthor(author.strip())
|
||||||
self.topics = [topic.strip() for topic in song_topics.split(u'/t')]
|
self.topics = [topic.strip() for topic in song_topics.split(u'/t')]
|
||||||
return self.finish()
|
return self.finish()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user