diff --git a/Resources/views/Person/macro.html.twig b/Resources/views/Person/macro.html.twig
index 2b193c835..34d2fcfd9 100644
--- a/Resources/views/Person/macro.html.twig
+++ b/Resources/views/Person/macro.html.twig
@@ -1,4 +1,4 @@
-{% macro render(p, withLink=true, withClosingInfo=false) %}{%spaceless %}
+{% macro render(p, withLink=true, withClosingInfo=false) %}{% apply spaceless %}
{% if withLink %}
@@ -15,5 +15,5 @@
{% endif %}
{% endif %}
{% if withLink %}{% endif %}
-{% endspaceless %}
+{% endapply %}
{% endmacro %}