Skip to content

Commit

Permalink
[DB Manager] Avoid unnecessary conversion (follows up b822fe7)
Browse files Browse the repository at this point in the history
  • Loading branch information
borysiasty committed Apr 27, 2018
1 parent b822fe7 commit e5aaf6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/db_manager/db_plugins/html_elems.py
Expand Up @@ -38,6 +38,8 @@ def toHtml(self):

if isinstance(self.data, str):
html = unicode(self.data, encoding='utf-8', errors='replace')
elif isinstance(self.data, unicode):
html = self.data
else:
html = unicode(self.data)
html = html.replace("\n", "<br>")
Expand Down

0 comments on commit e5aaf6a

Please sign in to comment.