Skip to content

Commit

Permalink
Add linbebreaks to statements
Browse files Browse the repository at this point in the history
  • Loading branch information
VirginiaDooley committed Feb 22, 2021
1 parent bf24f05 commit b089459
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions wcivf/apps/people/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ def statement_remainder(self):
statement_to_voters = self.statement_to_voters
statement_split = statement_to_voters.splitlines()
statement_intro = statement_split[0]
statement_split.remove(statement_intro)
statement_remainder = " ".join(statement_split)
statement_remainder = statement_split.remove(statement_intro)
statement_remainder = "\n".join(statement_split)

return statement_remainder

Expand Down
2 changes: 1 addition & 1 deletion wcivf/apps/people/templates/people/person_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h4>Statement to voters</h4>
<blockquote>{{ object.statement_intro }}</blockquote>
<details>
<summary>Full statement</summary>
<blockquote>{{ object.statement_remainder|linebreaks }}</blockquote>
<blockquote>{{ object.statement_remainder|linebreaksbr }}</blockquote>
</details>
</ul>
{% else %}
Expand Down

0 comments on commit b089459

Please sign in to comment.