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 <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2018-02-16 09:37:00 +13:00
parent bed43a9be5
commit 3adddf6a25

View File

@ -76,9 +76,7 @@
<div class="row-fluid">
<div class="description span7">
<p>
{{ layeritem.description }}
</p>
<p style="white-space: pre">{{ layeritem.description }}</p>
<p>
{% if layeritem.usage_url %}
<span class="label label-info">