Skip to content

Commit

Permalink
fix: use pre tag for pre-wrapped content to ensure minifier creates e…
Browse files Browse the repository at this point in the history
…xception
  • Loading branch information
mkhatri1 committed Apr 28, 2020
1 parent d802b42 commit bef5337
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions gavel/static/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ body {
font-family: Rubik !important;
}

pre {
font-family: Rubik !important;
}

html {
font-size: 62.5%;
}
Expand Down
2 changes: 1 addition & 1 deletion gavel/templates/_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</p>

<p class="capitalize text-12 md:text-16 text-indigo font-medium pb-.8">Project Details</p>
<p class="whitespace-pre-wrap w-full max-w-full text-12 md:text-14 pb-1.2" style="white-space: pre-wrap; word-wrap: break-word;">{{ item.description | safe }}</p>
<pre class="whitespace-pre-wrap w-full max-w-full text-12 md:text-14 pb-1.2" style="white-space: pre-wrap; word-wrap: break-word;">{{ item.description | safe }}</pre>
</div>

{% if virtual %}
Expand Down

0 comments on commit bef5337

Please sign in to comment.