home
·
contact
·
privacy
projects
/
plomledger
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8210605
)
Fix "raw" view being autoescaped into garbage.
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 26 Jan 2025 10:40:16 +0000
(11:40 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 26 Jan 2025 10:40:16 +0000
(11:40 +0100)
templates/_macros.tmpl
patch
|
blob
|
history
diff --git
a/templates/_macros.tmpl
b/templates/_macros.tmpl
index c1a9a40cc1eafc316baa6d689071ad45baef2ffa..850f4c5cfb53d6ee4c3855ee95c1e08b30e0a492 100644
(file)
--- a/
templates/_macros.tmpl
+++ b/
templates/_macros.tmpl
@@
-24,9
+24,9
@@
td.invalid, tr.warning td.invalid { background-color: #ff0000; }
{% if raw %}
<td{% if dat_line.error %} class="invalid"{% endif %}>
{% if dat_line.is_intro %}
- <a href="/booking/{{dat_line.booking_id}}"/>{{dat_line.raw_nbsp}}</a>
+ <a href="/booking/{{dat_line.booking_id}}"/>{{dat_line.raw_nbsp
|safe
}}</a>
{% else %}
- {{dat_line.raw_nbsp}}
+ {{dat_line.raw_nbsp
|safe
}}
{% endif %}
</td>
{% else %}