From 003b606781446eabfb1ec456396d5ce828f9cc44 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 18 Apr 2022 20:50:23 +0200 Subject: [PATCH] [ticket/17100] Improve output of unwrapped macros PHPBB3-17100 --- phpBB/adm/style/form_macros.twig | 46 +++++++++++++++++--------------- 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/phpBB/adm/style/form_macros.twig b/phpBB/adm/style/form_macros.twig index 0937a10b4b..a0cba50855 100644 --- a/phpBB/adm/style/form_macros.twig +++ b/phpBB/adm/style/form_macros.twig @@ -1,17 +1,18 @@ {% macro input(form_data) %} - + {% apply replace({"\n": ' ', '\t': ''}) %} + + {% endapply %} {% endmacro %} {% macro dimension(form_data) %} @@ -19,14 +20,15 @@ {% endmacro %} {% macro textarea(form_data) %} - + {% apply replace({"\n": ' ', '\t': ''}) %} + + {% endapply %} {% endmacro %} {% macro radio_buttons(form_data) %} @@ -35,7 +37,7 @@ {% endmacro %} {% macro select(form_data) %} - {% for option in form_data.options %} {% endfor %}