diff --git a/Resources/views/Form/fields.html.twig b/Resources/views/Form/fields.html.twig
index 97e2896dc..aea99ca8d 100644
--- a/Resources/views/Form/fields.html.twig
+++ b/Resources/views/Form/fields.html.twig
@@ -17,9 +17,9 @@
#}
{% block form_row %}
-{% spaceless %}
+{% apply spaceless %}
-
+ {% endapply %}">
{% if attr.class is not defined or ('cf-title' not in attr.class and 'cf-fields' not in attr.class ) %}
{{ form_label(form) }}
{% endif %}
-
+ {% endapply %}">
{{ form_widget(form) }}
{{ form_errors(form) }}
-{% endspaceless %}
+{% endapply %}
{% endblock form_row %}
{% block choice_widget_expanded %}
-{% spaceless %}
+{% apply spaceless %}
{% endfor %}