fixed <p> tag, replaced the <u> tag and another fix

This commit is contained in:
Andreas Preikschat 2010-11-27 22:12:52 +01:00
parent 52c12d50be
commit 7889a22810
2 changed files with 4 additions and 4 deletions

View File

@ -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'protected': True})
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'protected': True})
u'start html': u'<span style="text-decoration: underline;">',
u'end tag': u'{/u}', u'end html': u'</span>', u'protected': True})
def translate(context, text, comment=None):
"""

View File

@ -146,7 +146,7 @@ class SongBeamerImport(SongImport):
(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'<super>', u'{su}'),
(u'</super>', u'{/su}'),
@ -156,7 +156,7 @@ class SongBeamerImport(SongImport):
(u'</wordwrap>', u'')
]
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.
def parse_tags(self, line):