From c54acf109b7791043e81f4546c47b316035b84b7 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sat, 22 Jul 2023 14:16:11 -0500 Subject: [PATCH] whitespace control where needed --- files/templates/comments.html | 8 ++++---- files/templates/submission.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/files/templates/comments.html b/files/templates/comments.html index 06ff22661..793ec7d87 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -208,9 +208,9 @@ lastCount = comments['{{p.id}}'] var commentsToCheck = [ {% for c in p.comments -%} - {% if not (v and v.id==c.author_id) and not c.voted %} + {%- if not (v and v.id==c.author_id) and not c.voted %} [{{c.id}}, {{c.created_utc * 1000}}], - {% endif %} + {%- endif -%} {% endfor %} ]; @@ -253,9 +253,9 @@ var commentsToCheck = [ {% for c in p.comments -%} - {% if not (v and v.id==c.author_id) and not c.voted %} + {%- if not (v and v.id==c.author_id) and not c.voted %} [{{c.id}}, {{c.created_utc * 1000}}], - {% endif %} + {%- endif -%} {% endfor %} ]; diff --git a/files/templates/submission.html b/files/templates/submission.html index 278209d21..fac5b94a6 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -494,7 +494,7 @@ {% for c in p.comments -%} {% if not (v and v.id==c.author_id) and not c.voted %} [{{c.id}}, {{c.created_utc * 1000}}], - {% endif %} + {%- endif -%} {% endfor %} ];