Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2ee178b

Browse filesBrowse files
[TwigBridge] Remove use spaceless tag
1 parent e9c8e19 commit 2ee178b
Copy full SHA for 2ee178b

File tree

4 files changed

+17
-29
lines changed
Filter options

4 files changed

+17
-29
lines changed
+11-17Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
1-
{% block _text_id_widget %}
2-
{% spaceless %}
1+
{% block _text_id_widget -%}
32
<div id="container">
4-
{{ form_widget(form) }}
3+
{{- form_widget(form) -}}
54
</div>
6-
{% endspaceless %}
7-
{% endblock _text_id_widget %}
5+
{%- endblock _text_id_widget %}
86

9-
{% block _names_entry_label %}
10-
{% spaceless %}
7+
{% block _names_entry_label -%}
118
{% if label is empty %}
12-
{% set label = name|humanize %}
13-
{% endif %}
9+
{%- set label = name|humanize -%}
10+
{% endif -%}
1411
<label>Custom label: {{ label|trans({}, translation_domain) }}</label>
15-
{% endspaceless %}
16-
{% endblock _names_entry_label %}
12+
{%- endblock _names_entry_label %}
1713

18-
{% block _name_c_entry_label %}
19-
{% spaceless %}
14+
{% block _name_c_entry_label -%}
2015
{% if label is empty %}
21-
{% set label = name|humanize %}
22-
{% endif %}
16+
{%- set label = name|humanize -%}
17+
{% endif -%}
2318
<label>Custom name label: {{ label|trans({}, translation_domain) }}</label>
24-
{% endspaceless %}
25-
{% endblock _name_c_entry_label %}
19+
{%- endblock _name_c_entry_label %}
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{% block form_widget_simple %}
2-
{% spaceless %}
3-
{% set type = type|default('text') %}
2+
{%- set type = type|default('text') -%}
43
<input type="{{ type }}" {{ block('widget_attributes') }} value="{{ value }}" rel="theme" />
5-
{% endspaceless %}
6-
{% endblock form_widget_simple %}
4+
{%- endblock form_widget_simple %}
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{% extends 'form_div_layout.html.twig' %}
22

33
{% block form_widget_simple %}
4-
{% spaceless %}
5-
{% set type = type|default('text') %}
4+
{%- set type = type|default('text') -%}
65
<input type="{{ type }}" {{ block('widget_attributes') }} value="{{ value }}" rel="theme" />
7-
{% endspaceless %}
8-
{% endblock form_widget_simple %}
6+
{%- endblock form_widget_simple %}
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{% use 'form_div_layout.html.twig' %}
22

33
{% block form_widget_simple %}
4-
{% spaceless %}
5-
{% set type = type|default('text') %}
4+
{%- set type = type|default('text') -%}
65
<input type="{{ type }}" {{ block('widget_attributes') }} value="{{ value }}" rel="theme" />
7-
{% endspaceless %}
8-
{% endblock form_widget_simple %}
6+
{%- endblock form_widget_simple %}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.