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

htmlui: use new special labels to know when to escape / markup

Changeset d3f7a37ae41b

Parent 053cafeb5ba0

by Steve Borho

Changes to one file · Browse files at d3f7a37ae41b Showing diff from parent 053cafeb5ba0 Diff from another changeset...

 
34
35
36
37
 
38
39
 
 
40
41
42
 
34
35
36
 
37
38
39
40
41
42
43
44
@@ -34,9 +34,11 @@
    def label(self, msg, label):   msg = hglib.tounicode(msg) - if label: + if label != 'ui.labeled':   msg = QtCore.Qt.escape(msg)   msg = msg.replace('\n', '<br />') + if label == 'ui.plain': + return msg   style = qtlib.geteffect(label)   return '<span style="%s">%s</span>' % (style, msg)