From 1c660608eefb3c557fa109825e94e73c7520da66 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sun, 11 Jun 2023 13:01:58 -0700 Subject: [PATCH] Fix whitespace issues --- templates/index.html.tera | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/templates/index.html.tera b/templates/index.html.tera index 698106b..4363870 100644 --- a/templates/index.html.tera +++ b/templates/index.html.tera @@ -20,22 +20,21 @@ kyujitai = !kyujitai; } - + {% for line in content.japanese %} {% for subline in line %}

- {% for word in subline %} - {% if word.dictionary %} + {%- for word in subline -%} + {%- if word.dictionary -%} - {% endif %} - {% for segment in word.text %} - + {%- endif -%} + {% for segment in word.text -%} {{ segment.kanji }}({{ segment.furigana | safe }}) - {% endfor %} - {% if word.dictionary %} + {%- endfor -%} + {%- if word.dictionary -%} - {% endif %} - {% endfor %} + {%- endif -%} + {%- endfor -%}

{% endfor %} {% endfor %} @@ -50,11 +49,11 @@ {% else %} {{ content.translation.site.name }} {% endif %} - {% endif %} + {%- endif -%}

- {% endif %} - {% if content.suggester %} + {%- endif -%} + {%- if content.suggester -%}

This challenge was suggested by {{ content.suggester }} using the -h suggest command.

- {% endif %} + {%- endif -%} \ No newline at end of file