Fix ODT reports with links when run in non-English languages

Fixes #10911
This commit is contained in:
prculley 2018-12-09 14:42:39 -06:00 committed by Nick Hall
parent 96e4707c89
commit 8d5f2bd050

View File

@ -206,7 +206,7 @@ class DocBackend:
if not self.STYLETYPE_MAP or \
self.CLASSMAP != tagtype.__class__.__name__ :
self.CLASSMAP == tagtype.__class__.__name__
self.CLASSMAP = tagtype.__class__.__name__
self.STYLETYPE_MAP[tagtype.BOLD] = self.BOLD
self.STYLETYPE_MAP[tagtype.ITALIC] = self.ITALIC
self.STYLETYPE_MAP[tagtype.UNDERLINE] = self.UNDERLINE
@ -217,7 +217,7 @@ class DocBackend:
self.STYLETYPE_MAP[tagtype.SUPERSCRIPT] = self.SUPERSCRIPT
self.STYLETYPE_MAP[tagtype.LINK] = self.LINK
if s_tag.name == 'Link':
if s_tag.name == tagtype.LINK:
return self.format_link(s_tag.value)
typeval = int(s_tag.name)
s_tagvalue = s_tag.value