From 95455d95386c52206cac0e6ed32f1399f71b15c9 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 30 Oct 2020 14:43:39 -0700 Subject: [PATCH] Preserve linebreaks in text --- bookwyrm/static/css/format.css | 5 +++++ bookwyrm/templates/snippets/book_description.html | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bookwyrm/static/css/format.css b/bookwyrm/static/css/format.css index c37131f46..b1bf20cde 100644 --- a/bookwyrm/static/css/format.css +++ b/bookwyrm/static/css/format.css @@ -116,3 +116,8 @@ input.toggle-control:checked ~ .toggle-content { content: "\e903"; right: 0; } + +/* --- BLOCKQUOTE --- */ +blockquote { + white-space: pre-line; +} diff --git a/bookwyrm/templates/snippets/book_description.html b/bookwyrm/templates/snippets/book_description.html index f5fb3f439..12c9ccfb0 100644 --- a/bookwyrm/templates/snippets/book_description.html +++ b/bookwyrm/templates/snippets/book_description.html @@ -1,6 +1,2 @@ -{% if book.description %} -
{{ book.description }}
-{% elif book.parent_work.description %} -
{{ book.parent_work.description }}
-{% endif %} +
{% if book.description %}{{ book.description }}{% elif book.parent_work.description %}{{ book.parent_work.description }}{% endif %}