I have the following code.
{% spaceless %}
{% for date in entry.d_date %}
{% if date.showMonth == 1 %}
{{ date.date.month }}-
{% endif %}
{% if date.showDate == 1 %}
{{ date.date.day }}-
{% endif %}
{{ date.date.year }}
{% endfor %}
{% endspaceless %}
Which outputs 1- 1- 2014
Is there anyway to get rid of the whitespace without touching the indentation? I've used {spaceless}
but it's not working.