mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
printing_templates: mark 'dive.notes' as 'safe'
Grantlee has a way to display a variable as HTML by marking it as 'safe' e.g.: {{ dive.notes|safe }} This allows any HTML to be preserved when printing. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
00a085f858
commit
1d4075f368
4 changed files with 4 additions and 4 deletions
|
@ -197,7 +197,7 @@
|
|||
<tr>
|
||||
<td class="fieldData">
|
||||
<div class="textArea">
|
||||
<p> {{ dive.notes }} </p>
|
||||
<p> {{ dive.notes|safe }} </p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -210,7 +210,7 @@
|
|||
<tr>
|
||||
<td class="fieldData">
|
||||
<div class="textArea">
|
||||
<p> {{ dive.notes }} </p>
|
||||
<p> {{ dive.notes|safe }} </p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -171,7 +171,7 @@
|
|||
<tr>
|
||||
<td>
|
||||
<div class="textArea">
|
||||
<p> {{ dive.notes }} </p>
|
||||
<p> {{ dive.notes|safe }} </p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -221,7 +221,7 @@
|
|||
<tr>
|
||||
<td class="fieldData">
|
||||
<div class="textArea">
|
||||
<p> {{ dive.notes }} </p>
|
||||
<p> {{ dive.notes|safe }} </p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in a new issue