From 06bd6ef634de9a6569f15eb5043540e545371d68 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 8 Feb 2017 14:49:27 +0100 Subject: Implement generator support for whitespace handling markers --- testing/templates/comparison.html | 54 ++++++++++++++++++++++++++++++++++----- 1 file changed, 48 insertions(+), 6 deletions(-) (limited to 'testing') diff --git a/testing/templates/comparison.html b/testing/templates/comparison.html index 87aaec3..71a4a7b 100644 --- a/testing/templates/comparison.html +++ b/testing/templates/comparison.html @@ -1,6 +1,48 @@ -{% if a == b %}t{% endif %}{% if a == c %}t{% else %}f{% endif %} -{% if a != c %}t{% endif %}{% if a != b %}t{% else %}f{% endif %} -{% if c >= b %}t{% endif %}{% if b >= c %}t{% else %}f{% endif %} -{% if c > b %}t{% endif %}{% if a > c %}t{% else %}f{% endif %} -{% if a <= b %}t{% endif %}{% if c <= b %}t{% else %}f{% endif %} -{% if a < c %}t{% endif %}{% if a < b %}t{% else %}f{% endif %} +{% if a == b -%} + t +{%- endif -%} +{% if a == c -%} + t +{%- else -%} + f +{%- endif %} +{% if a != c -%} + t +{%- endif %} +{%- if a != b -%} + t +{%- else -%} + f +{%- endif %} +{% if c >= b -%} + t +{%- endif -%} +{% if b >= c -%} + t +{%- else -%} + f +{%- endif %} +{% if c > b -%} + t +{%- endif -%} +{% if a > c -%} + t +{%- else -%} + f +{%- endif %} +{% if a <= b %} + t +{% endif -%} +{% if c <= b -%} + t +{%- else -%} + f +{%- endif %} +{% if a < c -%} + t +{%- endif %} +{%- if a < b -%} + t +{%- else -%} + f +{%- endif %} -- cgit