Skip to content
Permalink
Browse files

[DB Manager] Avoid unnecessary conversion (follows up b822fe7)

  • Loading branch information
borysiasty committed Apr 27, 2018
1 parent b822fe7 commit e5aaf6a5501e6ef420f6324f15eaa275d0132787
Showing with 2 additions and 0 deletions.
  1. +2 −0 python/plugins/db_manager/db_plugins/html_elems.py
@@ -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>")

0 comments on commit e5aaf6a

Please sign in to comment.
You can’t perform that action at this time.