From fdfb2b12945df7ceed5ce2821c197c71e2156d54 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Tue, 24 Dec 2013 09:24:32 +0000 Subject: [PATCH] Done in error --- openlp/plugins/songs/lib/__init__.py | 2 +- openlp/plugins/songs/lib/songimport.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/openlp/plugins/songs/lib/__init__.py b/openlp/plugins/songs/lib/__init__.py index 10cde307c..8a74691d4 100644 --- a/openlp/plugins/songs/lib/__init__.py +++ b/openlp/plugins/songs/lib/__init__.py @@ -130,7 +130,7 @@ SPECIAL_CHARS = { 'line': '\n', 'tab': '\t', 'emdash': '\u2014', - 'endash': '\u2014', + 'endash': '\u2013', 'emspace': '\u2003', 'enspace': '\u2002', 'qmspace': '\u2005', diff --git a/openlp/plugins/songs/lib/songimport.py b/openlp/plugins/songs/lib/songimport.py index d8ec79d63..5a600a245 100644 --- a/openlp/plugins/songs/lib/songimport.py +++ b/openlp/plugins/songs/lib/songimport.py @@ -44,6 +44,7 @@ from openlp.plugins.songs.lib.xml import SongXML log = logging.getLogger(__name__) + class SongImport(QtCore.QObject): """ Helper class for import a song from a third party source into OpenLP @@ -153,7 +154,7 @@ class SongImport(QtCore.QObject): text = text.replace('\u201c', '"') text = text.replace('\u201d', '"') text = text.replace('\u2026', '...') - text = text.replace('\u2014', '-') + text = text.replace('\u2013', '-') text = text.replace('\u2014', '-') # Remove surplus blank lines, spaces, trailing/leading spaces text = re.sub(r'[ \t\v]+', ' ', text)