summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-02-19 21:47:13 +0000
committerPhilip Sargent <philip.sargent@klebos.com>2020-02-19 21:47:13 +0000
commitc1439bed8de835dc5cfcd3b313941c4f253e28f5 (patch)
treedae38c00d1ed2a68f7c7c5c1d35e6e775d57f19e /templates
parenta88f326ee64c028a61cdbc4636f422cfb8fcb793 (diff)
downloadtroggle-c1439bed8de835dc5cfcd3b313941c4f253e28f5.tar.gz
troggle-c1439bed8de835dc5cfcd3b313941c4f253e28f5.tar.bz2
troggle-c1439bed8de835dc5cfcd3b313941c4f253e28f5.zip
Adding <pre> and </pre> to the logbook entry display so that all the paragraphs are not munged into one when displayed. Untested.
Diffstat (limited to 'templates')
-rw-r--r--templates/dataformat/logbookentry.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/dataformat/logbookentry.html b/templates/dataformat/logbookentry.html
index e6b83ce..875e0ba 100644
--- a/templates/dataformat/logbookentry.html
+++ b/templates/dataformat/logbookentry.html
@@ -1,4 +1,5 @@
{% autoescape off %}
+<!DOCTYPE html>
<html>
<head>
<style type="text/css">.author {text-decoration:underline}</style>
@@ -8,9 +9,9 @@
<span class="date">{{date}}</span> - <span class="expeditionyear">{{expeditionyear}}</span>
{% if trip.caveOrLocation == "cave" %}
-<span class="cave">{{trip.cave}}</span>
+<span class="cave"><pre>{{trip.cave}}</pre></span>
{% else %}
-<span class="location">{{trip.location}}</span>
+<span class="location"><pre>{{trip.location}}</pre></span>
{% endif %}
{% for person in persons %}