From 476c2c17ef227bd4c3cb925f69f31096318b6a76 Mon Sep 17 00:00:00 2001 From: Mischa Date: Wed, 24 Jun 2026 00:09:56 +0200 Subject: [PATCH] fix: add whitespace-control to date-range macro declaration --- themes/intotheeast/templates/macros/date-range.html.twig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/intotheeast/templates/macros/date-range.html.twig b/themes/intotheeast/templates/macros/date-range.html.twig index 72a510e..83799d0 100644 --- a/themes/intotheeast/templates/macros/date-range.html.twig +++ b/themes/intotheeast/templates/macros/date-range.html.twig @@ -1,4 +1,4 @@ -{% macro format_date_range(start_date, end_date) %} +{%- macro format_date_range(start_date, end_date) -%} {%- if end_date is not empty and end_date|date('Y-m-d') != start_date|date('Y-m-d') -%} {%- set sd = start_date|date('d') -%} {%- set sm = start_date|date('M') -%} @@ -16,4 +16,4 @@ {%- else -%} {{- start_date|date('d M Y') -}} {%- endif %} -{% endmacro %} +{%- endmacro -%}