From 3adddf6a25977cb576f8fcefd307d947e43d637b Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Fri, 16 Feb 2018 09:37:00 +1300 Subject: [PATCH] Show layer description with newlines in layer detail A lot of people enter line breaks in their layer descriptions hoping that these will show up in the layer description, but of course since they are being displayed as part of an HTML document, they don't by default. Use a style in the description paragraph to ensure that they do. Signed-off-by: Paul Eggleton --- templates/layerindex/detail.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/templates/layerindex/detail.html b/templates/layerindex/detail.html index 0747421..3081ef3 100644 --- a/templates/layerindex/detail.html +++ b/templates/layerindex/detail.html @@ -76,9 +76,7 @@
-

- {{ layeritem.description }} -

+

{{ layeritem.description }}

{% if layeritem.usage_url %}