Remove redundant whitespace from rendered comments

Doesn't fix the perf issues but at least it reduces size quite a bit
This commit is contained in:
David Hoppenbrouwers
2022-10-08 11:45:37 +02:00
parent 9f74e1a2af
commit 6299a9e1fb
4 changed files with 57 additions and 65 deletions

View File

@@ -1,13 +1,13 @@
{% extends 'base.html' %}
{% from 'comment.html' import render_comment, reply, thread_author with context %}
{%- extends 'base.html' %}
{%- from 'comment.html' import render_comment, reply, thread_author with context %}
{% block content %}
{%- block content %}
<i>{{ thread_author(author_id, author, create_time, modify_time) }}</i>
<p>{{ minimd(text) | safe }}</p>
{{ reply() }}
{{- reply() }}
{% for c in comments %}
{{ render_comment(c, thread_id) }}
{% endfor %}
{% endblock %}
{%- for c in comments %}
{{- render_comment(c, thread_id) }}
{%- endfor %}
{%- endblock %}