Bug fix-bug fix: Unicode that html (animation stuff)

This commit is contained in:
Kiooeht 2011-05-16 23:57:19 -07:00
parent 0780f47614
commit e797912dc1

View file

@ -249,7 +249,7 @@ class PesterText(QtGui.QTextEdit):
url = self.urls[movie].toString()
def stuff(mo):
return '<img src="%s_%s" />' % (url, frame)
html = re.sub(r'<img src="%s\S{0,3}" />' % (url), stuff, str(self.toHtml()))
html = re.sub(r'<img src="%s\S{0,3}" />' % (url), stuff, unicode(self.toHtml()))
self.setHtml(html)
self.setLineWrapColumnOrWidth(self.lineWrapColumnOrWidth())
self.verticalScrollBar().setSliderPosition(scrollPos)