Preserve whitespace in statuses

This commit is contained in:
Mouse Reeve 2021-09-22 12:18:12 -07:00
parent dbfc1a28bb
commit 3eb49f3f74
2 changed files with 4 additions and 2 deletions

View file

@ -92,7 +92,7 @@
> >
{% if status.quote %} {% if status.quote %}
<div class="quote block"> <div class="quote block">
<blockquote dir="auto" class="content mb-2">{{ status.quote|safe }}</blockquote> <blockquote dir="auto" class="content mb-2 preserve-whitespace">{{ status.quote|safe }}</blockquote>
<p> <p>
&mdash; {% include 'snippets/book_titleby.html' with book=status.book %} &mdash; {% include 'snippets/book_titleby.html' with book=status.book %}

View file

@ -10,7 +10,7 @@
{% if not no_trim and trimmed != full %} {% if not no_trim and trimmed != full %}
<div id="hide_full_{{ uuid }}"> <div id="hide_full_{{ uuid }}">
<div class="content" id="trimmed_{{ uuid }}"> <div class="content" id="trimmed_{{ uuid }}">
<div dir="auto">{{ trimmed }}</div> <div dir="auto" class="preserve-whitespace">{{ trimmed }}</div>
<div> <div>
{% if not hide_more %} {% if not hide_more %}
@ -25,6 +25,7 @@
<div class="content"> <div class="content">
<div <div
dir="auto" dir="auto"
class="preserve-whitespace"
{% if itemprop %}itemprop="{{ itemprop }}"{% endif %} {% if itemprop %}itemprop="{{ itemprop }}"{% endif %}
> >
{{ full }} {{ full }}
@ -41,6 +42,7 @@
<div class="content"> <div class="content">
<div <div
dir="auto" dir="auto"
class="preserve-whitespace"
{% if itemprop %}itemprop="{{ itemprop }}"{% endif %} {% if itemprop %}itemprop="{{ itemprop }}"{% endif %}
> >
{{ full }} {{ full }}