From 830c1f3dc3e7375ad9b95833d59e110c203d0e51 Mon Sep 17 00:00:00 2001 From: rxu Date: Sat, 23 Sep 2023 10:21:07 +0700 Subject: [PATCH] [ticket/17151] Adjust template output formatting PHPBB3-17151 --- phpBB/styles/all/template/macros/forms/input.twig | 2 +- phpBB/styles/all/template/macros/forms/select.twig | 13 +++++-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/phpBB/styles/all/template/macros/forms/input.twig b/phpBB/styles/all/template/macros/forms/input.twig index 1a2ff13fa3..dcfeddf369 100644 --- a/phpBB/styles/all/template/macros/forms/input.twig +++ b/phpBB/styles/all/template/macros/forms/input.twig @@ -1,4 +1,4 @@ -{% apply replace({"\n": ' ', "\t": ''}) %} +{% apply replace({"\n\t": ' ', "\t": '', "\n": ''}) %} -{% endapply %} + {% if TOGGLEABLE %}data-togglable-settings="true"{% endif %} + {% if MULTIPLE %}multiple="multiple"{% endif %} + {% if SIZE %}size="{{ SIZE }}"{% endif %}> {% for element in OPTIONS %} {% if not GROUP_ONLY and element.options %} - {% apply replace({"\n": ' ', '\t': ''}) %} - {% endapply %} {% for option in element.options %}