docbackend: protect from sytledtexttag with value is None

This commit is contained in:
Doug Blank 2015-07-20 07:18:24 -04:00
parent 946d020aff
commit cb82d9f3f4

View File

@ -222,6 +222,8 @@ class DocBackend(object):
return self.format_link(s_tag.value)
typeval = int(s_tag.name)
s_tagvalue = s_tag.value
if s_tagvalue is None:
return None
tag_name = None
if tagtype.STYLE_TYPE[typeval] == bool:
return self.STYLETAG_MARKUP[self.STYLETYPE_MAP[typeval]]