Commit f637a5b9 authored by Noé Gaumont's avatar Noé Gaumont 🐙
Browse files

fix: don't escape value in table


#369

--HG--
branch : 3.32
parent adf764454722
......@@ -361,16 +361,16 @@ class View(AppObject):
if tr:
label = display_name(self._cw, label)
if table:
w("<th>%s</th>", label)
w("<th>%s</th>", label, escape=False)
else:
w('<span class="label">%s</span> ', label)
w('<span class="label">%s</span> ', label, escape=False)
if table:
if not (show_label and label):
w('<td colspan="2">%s</td></tr>', value)
w('<td colspan="2">%s</td></tr>', value, escape=False)
else:
w("<td>%s</td></tr>", value)
w("<td>%s</td></tr>", value, escape=False)
else:
w("<span>%s</span></div>", value)
w("<span>%s</span></div>", value, escape=False)
# concrete views base classes #################################################
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment