From e1339550f40584d518e10c9a9e9c33258dae868d Mon Sep 17 00:00:00 2001 From: benaryorg Date: Fri, 30 May 2014 21:12:05 +0200 Subject: [PATCH] New Lines are now supported! --- static/style.css | 4 ++++ templates/diary.html | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/static/style.css b/static/style.css index eb56593..b9d397c 100644 --- a/static/style.css +++ b/static/style.css @@ -85,6 +85,10 @@ a, a:active, a:visited { padding: 0px 0px 0px 0px; } +#listing p { + white-space:pre-wrap; +} + .error { padding: 5px; color: red; diff --git a/templates/diary.html b/templates/diary.html index 73e0d7f..c50cc10 100644 --- a/templates/diary.html +++ b/templates/diary.html @@ -26,9 +26,7 @@ {% for e in entries %}
{{ e.date }}
-

- {{ e.text }} -

+

{{ e.text }}

{% endfor %}