diff --git a/openlp/core/__init__.py b/openlp/core/__init__.py index e035c6dda..7c9ae3ef0 100644 --- a/openlp/core/__init__.py +++ b/openlp/core/__init__.py @@ -246,7 +246,7 @@ class OpenLP(OpenLPMixin, QtWidgets.QApplication): Settings().setValue('core/application version', openlp_version) # If data_version is different from the current version ask if we should backup the data folder elif data_version != openlp_version: - if self.splash.isVisible(): + if can_show_splash and self.splash.isVisible(): self.splash.hide() if QtWidgets.QMessageBox.question(None, translate('OpenLP', 'Backup'), translate('OpenLP', 'OpenLP has been upgraded, do you want to create\n' diff --git a/openlp/core/lib/__init__.py b/openlp/core/lib/__init__.py index c5799e2b4..75384ecc9 100644 --- a/openlp/core/lib/__init__.py +++ b/openlp/core/lib/__init__.py @@ -292,7 +292,7 @@ def clean_tags(text, remove_chords=False): """ text = text.replace('
', '\n') text = text.replace('{br}', '\n') - text = text.replace(' ', ' ') + #text = text.replace(' ', ' ') for tag in FormattingTags.get_html_tags(): text = text.replace(tag['start tag'], '') text = text.replace(tag['end tag'], '') @@ -430,8 +430,11 @@ def expand_chords(text): for note in notes: new_line += '%s' % note new_line += '' - for lyric in lyrics: - new_line += '%s ' % lyric + for i in range(len(lyrics)): + end_space = '' + if i + 1 == len(lyrics): + end_space = ' ' + new_line += '%s%s' % (lyrics[i], end_space) new_line += '' else: new_line += ' %s ' % word