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

qtlib: use 'white-space' CSS property in default

Changeset 973b6c131722

Parent cb1e7c21d72e

by Yuki KODAMA

Changes to one file · Browse files at 973b6c131722 Showing diff from parent cb1e7c21d72e Diff from another changeset...

 
86
87
88
89
 
90
91
92
93
94
95
96
 
 
97
98
99
 
86
87
88
 
89
90
91
92
93
94
 
 
95
96
97
98
99
@@ -86,14 +86,14 @@
 }    def markup(msg, **styles): - style = [] + style = {'white-space': 'pre'}   for name, value in styles.items():   if not value:   continue   if NAME_MAP.has_key(name):   name = NAME_MAP[name] - style.append('%s: %s' % (name, value)) - style = ';'.join(style) + style[name] = value + style = ';'.join(['%s: %s' % t for t in style.items()])   msg = hglib.tounicode(msg)   msg = QtCore.Qt.escape(msg)   msg = msg.replace('\n', '<br />')