Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(opinions): Add filter linebreaksbr to html #3378

Merged
merged 7 commits into from
Nov 28, 2023
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cl/opinion_page/templates/opinion.html
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,9 @@ <h4>Summary of Opinion</h4>
{% if sub_opinion.html_with_citations %}
{% if cluster.source == "C" %}
{# It's a PDF with no HTML enrichment #}
<div class="plaintext">{{ sub_opinion.html_with_citations|safe }}</div>
<div class="plaintext">{{ sub_opinion.html_with_citations|safe|linebreaksbr }}</div>
flooie marked this conversation as resolved.
Show resolved Hide resolved
{% else %}
<div class="serif-text">{{ sub_opinion.html_with_citations|safe }}</div>
<div class="serif-text">{{ sub_opinion.html_with_citations|safe|linebreaksbr }}</div>
flooie marked this conversation as resolved.
Show resolved Hide resolved
{% endif %}
{% elif sub_opinion.html_columbia %}
<div class="serif-text">{{ sub_opinion.html_columbia|safe }}</div>
Expand All @@ -509,7 +509,7 @@ <h4>Summary of Opinion</h4>
{% elif sub_opinion.html_anon_2020 %}
<div class="serif-text">{{ sub_opinion.html_anon_2020|safe }}</div>
{% elif sub_opinion.html %}
<div class="serif-text">{{sub_opinion.html|safe}}</div>
<div class="serif-text">{{sub_opinion.html|safe|linebreaksbr}}</div>
flooie marked this conversation as resolved.
Show resolved Hide resolved
{% else %}
<pre>{{sub_opinion.plain_text}}</pre>
{% endif %}
Expand Down
Loading