Skip to content

Commit

Permalink
Merge pull request #670 from LibraryOfCongress/preserve-line-breaks-i…
Browse files Browse the repository at this point in the history
…n-descriptions

Preserve linebreaks in descriptions
  • Loading branch information
acdha committed Nov 28, 2018
2 parents 0fdaf17 + ab3ab2e commit 701da40
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion concordia/templates/transcriptions/campaign_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class="row">
<div class="col-md-9">
<h1>{{ campaign.title }}</h1>
<p class="hero-text">{{ campaign.description }}</p>
<p class="hero-text">{{ campaign.description|linebreaksbr }}</p>
</div>
<div class="col-md-3">
{% if campaign.resource_set.all|length %}
Expand Down
2 changes: 1 addition & 1 deletion concordia/templates/transcriptions/campaign_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a href="{% url 'transcriptions:campaign-detail' campaign.slug %}">
<h1 class="campaign-title">{{ campaign.title }}</h1>
</a>
{{ campaign.short_description }}
{{ campaign.short_description|linebreaksbr }}
</div>
<div class="col-12 col-md-4">
<a href="{% url 'transcriptions:campaign-detail' campaign.slug %}">
Expand Down
2 changes: 1 addition & 1 deletion concordia/templates/transcriptions/item_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div class="row">
<div class="col-md-10">
<h1 class="m-3">{{ item.title }}</h1>
<p class="m-3 hero-text">{{ item.description }}</p>
<p class="m-3 hero-text">{{ item.description|linebreaksbr }}</p>
</div>
<div class="col-md-2 align-bottom">
<div class="m-3">
Expand Down
2 changes: 1 addition & 1 deletion concordia/templates/transcriptions/project_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<div class="row">
<div class="col-12">
<h1 class="m-3">{{ project.title }}</h1>
<p class="m-3 hero-text">{{ project.description }}</p>
<p class="m-3 hero-text">{{ project.description|linebreaksbr }}</p>
</div>
</div>
{% include "fragments/transcription-progress-row.html" %}
Expand Down

0 comments on commit 701da40

Please sign in to comment.