Use <pre> instead of <p> so \n is kept.

This commit is contained in:
voussoir 2017-07-16 17:28:06 -07:00
parent a1178ca3a5
commit 23349e7823

View file

@ -26,6 +26,7 @@ p
} }
#description_text #description_text
{ {
font-family: initial;
padding: 8px; padding: 8px;
background-color: rgba(0, 0, 0, 0.1); background-color: rgba(0, 0, 0, 0.1);
} }
@ -49,7 +50,14 @@ p
{%- endif -%} {%- endif -%}
</span> </span>
</h2> </h2>
<p data-editor-id="description" data-editor-placeholder="description" id="description_text" {% if album.description == "" %}class="hidden"{% endif %}>{{album.description}}</p> <pre
id="description_text"
data-editor-id="description"
data-editor-placeholder="description"
{% if album.description == "" %}class="hidden"{% endif %}
>
{{-album.description-}}
</pre>
{% set viewparam = "?view=list" if view == "list" else "" %} {% set viewparam = "?view=list" if view == "list" else "" %}
{% set parent = album.parent() %} {% set parent = album.parent() %}