forked from openlp/openlp
Done in error
This commit is contained in:
parent
6d8b5cadb4
commit
fdfb2b1294
@ -130,7 +130,7 @@ SPECIAL_CHARS = {
|
|||||||
'line': '\n',
|
'line': '\n',
|
||||||
'tab': '\t',
|
'tab': '\t',
|
||||||
'emdash': '\u2014',
|
'emdash': '\u2014',
|
||||||
'endash': '\u2014',
|
'endash': '\u2013',
|
||||||
'emspace': '\u2003',
|
'emspace': '\u2003',
|
||||||
'enspace': '\u2002',
|
'enspace': '\u2002',
|
||||||
'qmspace': '\u2005',
|
'qmspace': '\u2005',
|
||||||
|
@ -44,6 +44,7 @@ from openlp.plugins.songs.lib.xml import SongXML
|
|||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class SongImport(QtCore.QObject):
|
class SongImport(QtCore.QObject):
|
||||||
"""
|
"""
|
||||||
Helper class for import a song from a third party source into OpenLP
|
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('\u201c', '"')
|
||||||
text = text.replace('\u201d', '"')
|
text = text.replace('\u201d', '"')
|
||||||
text = text.replace('\u2026', '...')
|
text = text.replace('\u2026', '...')
|
||||||
text = text.replace('\u2014', '-')
|
text = text.replace('\u2013', '-')
|
||||||
text = text.replace('\u2014', '-')
|
text = text.replace('\u2014', '-')
|
||||||
# Remove surplus blank lines, spaces, trailing/leading spaces
|
# Remove surplus blank lines, spaces, trailing/leading spaces
|
||||||
text = re.sub(r'[ \t\v]+', ' ', text)
|
text = re.sub(r'[ \t\v]+', ' ', text)
|
||||||
|
Loading…
Reference in New Issue
Block a user