Fix unknown variables in htmltextview.

This commit is contained in:
Emmanuel Gil Peyrot 2016-11-05 15:30:34 +00:00
parent 0e929b7777
commit f32e99b748
1 changed files with 3 additions and 1 deletions

View File

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