Skip to content
Snippets Groups Projects

add <pre></pre> to text in tracking box to preseve space and line break

Merged Lan Dam requested to merge make_tracking_info_box_preserve_space_line_break into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -75,7 +75,7 @@ def display_tracking_info(tracking_box: QTextBrowser, text: str,
msg['bgcolor'] = 'white'
html_text = """<body>
<div style='color:%(color)s'>
<strong>%(text)s</strong>
<strong><pre>%(text)s</pre></strong>
</div>
</body>"""
tracking_box.setHtml(html_text % msg)
Loading