Fix whitespace issues
This commit is contained in:
parent
3b7e03874f
commit
1c660608ee
1 changed files with 13 additions and 14 deletions
|
@ -20,22 +20,21 @@
|
||||||
kyujitai = !kyujitai;
|
kyujitai = !kyujitai;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<button onclick="kyujitaiToggle(); this.innerHTML = kyujitai ? '新字体' : '旧字体'"">旧字体</button>
|
<button onclick="kyujitaiToggle(); this.innerHTML = kyujitai ? '新字体' : '旧字体'">旧字体</button>
|
||||||
{% for line in content.japanese %}
|
{% for line in content.japanese %}
|
||||||
{% for subline in line %}
|
{% for subline in line %}
|
||||||
<p>
|
<p>
|
||||||
{% for word in subline %}
|
{%- for word in subline -%}
|
||||||
{% if word.dictionary %}
|
{%- if word.dictionary -%}
|
||||||
<a href="{{ word.dictionary }}" target="_blank"{% if word.pos %} class="{{ word.pos }}" title="{{ word.pos }}"{% endif %}>
|
<a href="{{ word.dictionary }}" target="_blank"{% if word.pos %} class="{{ word.pos }}" title="{{ word.pos }}"{% endif %}>
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
{% for segment in word.text %}
|
{% for segment in word.text -%}
|
||||||
<!-- TODO: Don't use ruby for all segments -->
|
|
||||||
<ruby{% if segment.kyujitai %} data-kyujitai="{{ segment.kyujitai }}"{% endif %}>{{ segment.kanji }}<rp>(</rp><rt>{{ segment.furigana | safe }}</rt><rp>)</rp></ruby>
|
<ruby{% if segment.kyujitai %} data-kyujitai="{{ segment.kyujitai }}"{% endif %}>{{ segment.kanji }}<rp>(</rp><rt>{{ segment.furigana | safe }}</rt><rp>)</rp></ruby>
|
||||||
{% endfor %}
|
{%- endfor -%}
|
||||||
{% if word.dictionary %}
|
{%- if word.dictionary -%}
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
{% endfor %}
|
{%- endfor -%}
|
||||||
</p>
|
</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -50,11 +49,11 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
{{ content.translation.site.name }}
|
{{ content.translation.site.name }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
{% if content.suggester %}
|
{%- if content.suggester -%}
|
||||||
<p><em>This challenge was suggested by <strong>{{ content.suggester }}</strong> using the <code>-h suggest</code> command.</code></em></p>
|
<p><em>This challenge was suggested by <strong>{{ content.suggester }}</strong> using the <code>-h suggest</code> command.</code></em></p>
|
||||||
{% endif %}
|
{%- endif -%}
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Add table
Reference in a new issue