Bug fix-bug fix: Unicode that html (animation stuff)
This commit is contained in:
parent
0780f47614
commit
e797912dc1
1 changed files with 1 additions and 1 deletions
2
convo.py
2
convo.py
|
@ -249,7 +249,7 @@ class PesterText(QtGui.QTextEdit):
|
||||||
url = self.urls[movie].toString()
|
url = self.urls[movie].toString()
|
||||||
def stuff(mo):
|
def stuff(mo):
|
||||||
return '<img src="%s_%s" />' % (url, frame)
|
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.setHtml(html)
|
||||||
self.setLineWrapColumnOrWidth(self.lineWrapColumnOrWidth())
|
self.setLineWrapColumnOrWidth(self.lineWrapColumnOrWidth())
|
||||||
self.verticalScrollBar().setSliderPosition(scrollPos)
|
self.verticalScrollBar().setSliderPosition(scrollPos)
|
||||||
|
|
Loading…
Reference in a new issue