Merge pull request #262 from mouse-reeve/minor-ui

Preserve linebreaks in display text
This commit is contained in:
Mouse Reeve 2020-10-31 10:55:33 -07:00 committed by GitHub
commit 3db1e7a6d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View file

@ -116,3 +116,8 @@ input.toggle-control:checked ~ .toggle-content {
content: "\e903";
right: 0;
}
/* --- BLOCKQUOTE --- */
blockquote {
white-space: pre-line;
}

View file

@ -1,6 +1,2 @@
{% if book.description %}
<blockquote class="content">{{ book.description }}</blockquote>
{% elif book.parent_work.description %}
<blockquote>{{ book.parent_work.description }}</blockquote>
{% endif %}
<blockquote class="content">{% if book.description %}{{ book.description }}{% elif book.parent_work.description %}{{ book.parent_work.description }}{% endif %}</blockquote>