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:
Lubomir I. Ivanov 2015-11-15 23:01:49 +02:00 committed by Dirk Hohndel
parent 00a085f858
commit 1d4075f368
4 changed files with 4 additions and 4 deletions

View file

@ -197,7 +197,7 @@
<tr>
<td class="fieldData">
<div class="textArea">
<p> {{ dive.notes }} </p>
<p> {{ dive.notes|safe }} </p>
</div>
</td>
</tr>

View file

@ -210,7 +210,7 @@
<tr>
<td class="fieldData">
<div class="textArea">
<p> {{ dive.notes }} </p>
<p> {{ dive.notes|safe }} </p>
</div>
</td>
</tr>

View file

@ -171,7 +171,7 @@
<tr>
<td>
<div class="textArea">
<p> {{ dive.notes }} </p>
<p> {{ dive.notes|safe }} </p>
</div>
</td>
</tr>

View file

@ -221,7 +221,7 @@
<tr>
<td class="fieldData">
<div class="textArea">
<p> {{ dive.notes }} </p>
<p> {{ dive.notes|safe }} </p>
</div>
</td>
</tr>