Use pre tag for the paste content and wrap appropriately
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
b5efd31fdd
commit
3a9e8390fe
1 changed files with 10 additions and 2 deletions
|
@ -13,6 +13,14 @@
|
|||
body {
|
||||
font-family: 'Inter';
|
||||
}
|
||||
pre {
|
||||
overflow-x: auto;
|
||||
white-space: pre-wrap;
|
||||
white-space: -moz-pre-wrap;
|
||||
white-space: -pre-wrap;
|
||||
white-space: -o-pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
|
@ -26,7 +34,7 @@ document.addEventListener('DOMContentLoaded', (event) => {
|
|||
Obsolute Paste
|
||||
</h2>
|
||||
{% block content %}
|
||||
<p
|
||||
<pre
|
||||
class="
|
||||
w-10/12
|
||||
text-gray-100
|
||||
|
@ -36,7 +44,7 @@ document.addEventListener('DOMContentLoaded', (event) => {
|
|||
p-2
|
||||
"
|
||||
id="pastecontent"
|
||||
>{{paste_content}}</p>
|
||||
>{{paste_content}}</pre>
|
||||
{% endblock content %}
|
||||
</div>
|
||||
<br/>
|
||||
|
|
Loading…
Reference in a new issue