Skip to content

Commit 01839ab

Browse files
committed
minor #2300 [Turbo] delete whitespace for <twig:Turbo:Stream:*> components (seb-jean)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [Turbo] delete whitespace for `<twig:Turbo:Stream:*>` components | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no I added whitespace trimming for delete a whitespace for `<twig:Turbo:Stream:*>` components. Example with below code: ```twig <twig:Turbo:Stream:Append target="#count-post"> <div>12</div> </twig:Turbo:Stream:Append> ``` **Before** ```twig <turbo-stream action="append" targets="#count-post" > <template><div>12</div> </template> </turbo-stream> ``` **After** ```twig <turbo-stream action="append" targets="#count-post"> <template><div>12</div> </template> </turbo-stream> ``` Commits ------- 7f4d863 [Turbo] delete whitespace for `<twig:Turbo:Stream:*>` components
2 parents 643f0c9 + 7f4d863 commit 01839ab

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% props target -%}
22

3-
<turbo-stream action="after" targets="{{ target }}" {{ attributes }}>
3+
<turbo-stream action="after" targets="{{ target }}" {{- attributes }}>
44
<template>{% block content %}{% endblock %}</template>
55
</turbo-stream>
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% props target -%}
22

3-
<turbo-stream action="append" targets="{{ target }}" {{ attributes }}>
3+
<turbo-stream action="append" targets="{{ target }}" {{- attributes }}>
44
<template>{% block content %}{% endblock %}</template>
55
</turbo-stream>
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% props target -%}
22

3-
<turbo-stream action="before" targets="{{ target }}" {{ attributes }}>
3+
<turbo-stream action="before" targets="{{ target }}" {{- attributes }}>
44
<template>{% block content %}{% endblock %}</template>
55
</turbo-stream>
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% props target -%}
22

3-
<turbo-stream action="prepend" targets="{{ target }}" {{ attributes }}>
3+
<turbo-stream action="prepend" targets="{{ target }}" {{- attributes }}>
44
<template>{% block content %}{% endblock %}</template>
55
</turbo-stream>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{% props requestId = null -%}
22

3-
<turbo-stream action="refresh"{% if requestId is not null %} request-id="{{ requestId }}"{% endif %} {{ attributes }}></turbo-stream>
3+
<turbo-stream action="refresh"{% if requestId is not null %} request-id="{{ requestId }}"{% endif %} {{- attributes }}></turbo-stream>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{% props target -%}
22

3-
<turbo-stream action="remove" targets="{{ target }}" {{ attributes }}></turbo-stream>
3+
<turbo-stream action="remove" targets="{{ target }}" {{- attributes }}></turbo-stream>
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% props target, morph = false -%}
22

3-
<turbo-stream action="replace" targets="{{ target }}"{% if morph %} method="morph"{% endif %} {{ attributes }}>
3+
<turbo-stream action="replace" targets="{{ target }}"{% if morph %} method="morph"{% endif %} {{- attributes }}>
44
<template>{% block content %}{% endblock %}</template>
55
</turbo-stream>
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% props target, morph = false -%}
22

3-
<turbo-stream action="update" targets="{{ target }}"{% if morph %} method="morph"{% endif %} {{ attributes }}>
3+
<turbo-stream action="update" targets="{{ target }}"{% if morph %} method="morph"{% endif %} {{- attributes }}>
44
<template>{% block content %}{% endblock %}</template>
55
</turbo-stream>

0 commit comments

Comments
 (0)