fix: newlines
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-12-22 15:37:19 +01:00
parent eb5697a6c9
commit c5e74bd22c
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 4 additions and 3 deletions

View file

@ -21,7 +21,7 @@ def read(file: int) -> str:
read_page=True,
page_name=name,
name=f"{file}.txt",
file=post.content if post else None,
file=post.content.split("\n") if post else None,
post_file_id=post_file_id,
date=post.creation_date if post else None,
)

View file

@ -10,8 +10,9 @@
{% if file %}
<h3>{{ name }}</h3>
<p>{{ file }}</p>
{% else %}
{% for para in file %}
<p>{{para}}</p>
{% endfor %} {% else %}
<p>{{ name }} doesn't exists</p>
{% endif %}
</main>