Fixed trailing '>' in message view which appeared after HTLM rendering
This commit is contained in:
parent
f870bcc6f7
commit
bbb5e5d99b
|
@ -103,7 +103,7 @@ class MessageView(QtGui.QTextBrowser):
|
|||
if self.mode == MessageView.MODE_HTML:
|
||||
pos = self.out.find(">", self.outpos)
|
||||
if pos > self.outpos:
|
||||
self.outpos = pos
|
||||
self.outpos = pos + 1
|
||||
cursor.movePosition(QtGui.QTextCursor.End, QtGui.QTextCursor.MoveAnchor)
|
||||
cursor.insertHtml(QtCore.QString(self.out[startpos:self.outpos]))
|
||||
self.verticalScrollBar().setValue(position)
|
||||
|
|
Loading…
Reference in New Issue
Block a user