Skip to content

Commit c4d01b8

Browse files
committed
minor #11358 fix indention for twig example (OskarStark)
This PR was merged into the 3.4 branch. Discussion ---------- fix indention for twig example <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 24c3b04 fix indention for twig example
2 parents 6e15aef + 24c3b04 commit c4d01b8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

translation.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -288,16 +288,16 @@ texts* and complex expressions:
288288

289289
.. code-block:: twig
290290
291-
{# text translated between tags is never escaped #}
292-
{% trans %}
293-
<h3>foo</h3>
294-
{% endtrans %}
291+
{# text translated between tags is never escaped #}
292+
{% trans %}
293+
<h3>foo</h3>
294+
{% endtrans %}
295295
296-
{% set message = '<h3>foo</h3>' %}
296+
{% set message = '<h3>foo</h3>' %}
297297
298-
{# strings and variables translated via a filter are escaped by default #}
299-
{{ message|trans|raw }}
300-
{{ '<h3>bar</h3>'|trans|raw }}
298+
{# strings and variables translated via a filter are escaped by default #}
299+
{{ message|trans|raw }}
300+
{{ '<h3>bar</h3>'|trans|raw }}
301301
302302
.. tip::
303303

0 commit comments

Comments
 (0)