diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-02-16 09:37:00 +1300 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2018-02-20 16:00:37 +1300 |
commit | 3adddf6a25977cb576f8fcefd307d947e43d637b (patch) | |
tree | 07e9df7bd8f4ad47ee8d946d266b459db418e0f8 /templates/layerindex | |
parent | bed43a9be53a2f1722be75fb4bd63a6d7a94afaa (diff) | |
download | openembedded-core-contrib-3adddf6a25977cb576f8fcefd307d947e43d637b.tar.gz |
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>
Diffstat (limited to 'templates/layerindex')
-rw-r--r-- | templates/layerindex/detail.html | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/templates/layerindex/detail.html b/templates/layerindex/detail.html index 0747421294..3081ef3b68 100644 --- a/templates/layerindex/detail.html +++ b/templates/layerindex/detail.html @@ -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"> |