Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

htmlui: do not escape message without labels

Some commands use push-buffers, then call popbuffer(label=True) to
get the marked up text, then call ui.write(output). We cannot escape
that the second time else the markup is "exposed".

Changeset ac488050194b

Parent f83c0c617a6e

by Steve Borho

Changes to one file · Browse files at ac488050194b Showing diff from parent f83c0c617a6e Diff from another changeset...

 
35
36
37
38
 
 
39
40
41
 
35
36
37
 
38
39
40
41
42
@@ -35,7 +35,8 @@
    def label(self, msg, label):   msg = hglib.tounicode(msg) - msg = QtCore.Qt.escape(msg) + if label: + msg = QtCore.Qt.escape(msg)   msg = msg.replace('\n', '<br />')   style = qtlib.geteffect(label)   return '<span style="%s">%s</span>' % (style, msg)