Done in error

This commit is contained in:
Tim Bentley 2013-12-24 09:24:32 +00:00
parent 6d8b5cadb4
commit fdfb2b1294
2 changed files with 3 additions and 2 deletions

View File

@ -130,7 +130,7 @@ SPECIAL_CHARS = {
'line': '\n',
'tab': '\t',
'emdash': '\u2014',
'endash': '\u2014',
'endash': '\u2013',
'emspace': '\u2003',
'enspace': '\u2002',
'qmspace': '\u2005',

View File

@ -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)