summaryrefslogtreecommitdiffstats
path: root/printing_templates
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2015-11-15 23:01:49 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-11-15 21:07:12 -0800
commit1d4075f368cd688af89211226df182052fbaf512 (patch)
tree8eecac2ab90254ccaa37c01b0a146424d6caff41 /printing_templates
parent00a085f858f64768456d25a200e2e3477c1fda7e (diff)
downloadsubsurface-1d4075f368cd688af89211226df182052fbaf512.tar.gz
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>
Diffstat (limited to 'printing_templates')
-rw-r--r--printing_templates/Flowlayout.html2
-rw-r--r--printing_templates/One Dive.html2
-rw-r--r--printing_templates/Six Dives.html2
-rw-r--r--printing_templates/Two Dives.html2
4 files changed, 4 insertions, 4 deletions
diff --git a/printing_templates/Flowlayout.html b/printing_templates/Flowlayout.html
index 2615c35a8..21691c22b 100644
--- a/printing_templates/Flowlayout.html
+++ b/printing_templates/Flowlayout.html
@@ -197,7 +197,7 @@
<tr>
<td class="fieldData">
<div class="textArea">
- <p> {{ dive.notes }} </p>
+ <p> {{ dive.notes|safe }} </p>
</div>
</td>
</tr>
diff --git a/printing_templates/One Dive.html b/printing_templates/One Dive.html
index 020c67b30..3884ecaba 100644
--- a/printing_templates/One Dive.html
+++ b/printing_templates/One Dive.html
@@ -210,7 +210,7 @@
<tr>
<td class="fieldData">
<div class="textArea">
- <p> {{ dive.notes }} </p>
+ <p> {{ dive.notes|safe }} </p>
</div>
</td>
</tr>
diff --git a/printing_templates/Six Dives.html b/printing_templates/Six Dives.html
index 9d4d1341e..1d4bb5b56 100644
--- a/printing_templates/Six Dives.html
+++ b/printing_templates/Six Dives.html
@@ -171,7 +171,7 @@
<tr>
<td>
<div class="textArea">
- <p> {{ dive.notes }} </p>
+ <p> {{ dive.notes|safe }} </p>
</div>
</td>
</tr>
diff --git a/printing_templates/Two Dives.html b/printing_templates/Two Dives.html
index 95cc9a088..5d2e1f618 100644
--- a/printing_templates/Two Dives.html
+++ b/printing_templates/Two Dives.html
@@ -221,7 +221,7 @@
<tr>
<td class="fieldData">
<div class="textArea">
- <p> {{ dive.notes }} </p>
+ <p> {{ dive.notes|safe }} </p>
</div>
</td>
</tr>