Fix unknown variables in htmltextview.
This commit is contained in:
parent
0e929b7777
commit
f32e99b748
|
@ -55,6 +55,8 @@ if __name__ == '__main__':
|
||||||
from common import gajim
|
from common import gajim
|
||||||
from gtkgui_helpers import get_icon_pixmap
|
from gtkgui_helpers import get_icon_pixmap
|
||||||
from common import helpers
|
from common import helpers
|
||||||
|
from common.exceptions import GajimGeneralException
|
||||||
|
import dialogs
|
||||||
|
|
||||||
import tooltips
|
import tooltips
|
||||||
import logging
|
import logging
|
||||||
|
@ -735,7 +737,7 @@ class HtmlHandler(xml.sax.handler.ContentHandler):
|
||||||
cite = attrs.get('cite', None)
|
cite = attrs.get('cite', None)
|
||||||
if cite:
|
if cite:
|
||||||
tag = self.textbuf.create_tag(id_)
|
tag = self.textbuf.create_tag(id_)
|
||||||
tag.title = title
|
tag.title = attrs.get('title', None)
|
||||||
tag.is_anchor = True
|
tag.is_anchor = True
|
||||||
elif name in LIST_ELEMS:
|
elif name in LIST_ELEMS:
|
||||||
style += ';margin-left: 2em'
|
style += ';margin-left: 2em'
|
||||||
|
|
Loading…
Reference in New Issue