forked from openlp/openlp
fixed <p> tag, replaced the <u> tag and another fix
This commit is contained in:
parent
52c12d50be
commit
7889a22810
@ -81,8 +81,8 @@ html_expands.append({u'desc': u'Italics', u'start tag': u'{it}',
|
|||||||
u'start html': u'<em>', u'end tag': u'{/it}', u'end html': u'</em>',
|
u'start html': u'<em>', u'end tag': u'{/it}', u'end html': u'</em>',
|
||||||
u'protected': True})
|
u'protected': True})
|
||||||
html_expands.append({u'desc': u'Underline', u'start tag': u'{u}',
|
html_expands.append({u'desc': u'Underline', u'start tag': u'{u}',
|
||||||
u'start html': u'<u>', u'end tag': u'{/u}', u'end html': u'</u>',
|
u'start html': u'<span style="text-decoration: underline;">',
|
||||||
u'protected': True})
|
u'end tag': u'{/u}', u'end html': u'</span>', u'protected': True})
|
||||||
|
|
||||||
def translate(context, text, comment=None):
|
def translate(context, text, comment=None):
|
||||||
"""
|
"""
|
||||||
|
@ -146,7 +146,7 @@ class SongBeamerImport(SongImport):
|
|||||||
(u'<br>', u'{st}'),
|
(u'<br>', u'{st}'),
|
||||||
(u'</br>', u'{st}'),
|
(u'</br>', u'{st}'),
|
||||||
(u'</ br>', u'{st}'),
|
(u'</ br>', u'{st}'),
|
||||||
(u'<p>', u'{/p}'),
|
(u'<p>', u'{p}'),
|
||||||
(u'</p>', u'{/p}'),
|
(u'</p>', u'{/p}'),
|
||||||
(u'<super>', u'{su}'),
|
(u'<super>', u'{su}'),
|
||||||
(u'</super>', u'{/su}'),
|
(u'</super>', u'{/su}'),
|
||||||
@ -156,7 +156,7 @@ class SongBeamerImport(SongImport):
|
|||||||
(u'</wordwrap>', u'')
|
(u'</wordwrap>', u'')
|
||||||
]
|
]
|
||||||
for pair in tag_pairs:
|
for pair in tag_pairs:
|
||||||
self.current_verse.replace(pair[0], pair[1])
|
self.current_verse = self.current_verse.replace(pair[0], pair[1])
|
||||||
# TODO: check for unsupported tags (see wiki) and remove them as well.
|
# TODO: check for unsupported tags (see wiki) and remove them as well.
|
||||||
|
|
||||||
def parse_tags(self, line):
|
def parse_tags(self, line):
|
||||||
|
Loading…
Reference in New Issue
Block a user