Changeset 79a895eec57e…
Parent 5f228d648bae…
by
Changes to one file · Browse files at 79a895eec57e Showing diff from parent 5f228d648bae Diff from another changeset...
@@ -8,6 +8,7 @@ import os
from mercurial import ui
+from PyQt4 import QtCore
from tortoisehg.hgqt import qtlib
from tortoisehg.util import hglib
@@ -34,9 +35,7 @@
def label(self, msg, label):
msg = hglib.tounicode(msg)
- msg = msg.replace('&','&')
- msg = msg.replace('<','<')
- msg = msg.replace('>','>')
+ msg = QtCore.Qt.escape(msg)
style = qtlib.geteffect(label)
if style:
return '<pre style="%s">%s</pre>' % (style, msg)
|
Loading...