Skip to content

Commit e5aaf6a

Browse files
committedApr 27, 2018
[DB Manager] Avoid unnecessary conversion (follows up b822fe7)
1 parent b822fe7 commit e5aaf6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎python/plugins/db_manager/db_plugins/html_elems.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ def toHtml(self):
3838

3939
if isinstance(self.data, str):
4040
html = unicode(self.data, encoding='utf-8', errors='replace')
41+
elif isinstance(self.data, unicode):
42+
html = self.data
4143
else:
4244
html = unicode(self.data)
4345
html = html.replace("\n", "<br>")

0 commit comments

Comments
 (0)
Please sign in to comment.