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': ''}) %}