Skip to content

Commit b9f1e0b

Browse files
committed
[book][templating] Fixing some bad tabs
1 parent cf0c60e commit b9f1e0b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

book/templating.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ alternating ``odd``, ``even`` classes:
108108
.. code-block:: html+jinja
109109

110110
{% for i in 0..10 %}
111-
<div class="{{ cycle(['odd', 'even'], i) }}">
112-
<!-- some HTML here -->
113-
</div>
111+
<div class="{{ cycle(['odd', 'even'], i) }}">
112+
<!-- some HTML here -->
113+
</div>
114114
{% endfor %}
115115

116116
Throughout this chapter, template examples will be shown in both Twig and PHP.
@@ -493,7 +493,7 @@ template. First, create the template that you'll need to reuse.
493493
<h3 class="byline">by {{ article.authorName }}</h3>
494494

495495
<p>
496-
{{ article.body }}
496+
{{ article.body }}
497497
</p>
498498

499499
.. code-block:: html+php
@@ -503,7 +503,7 @@ template. First, create the template that you'll need to reuse.
503503
<h3 class="byline">by <?php echo $article->getAuthorName() ?></h3>
504504

505505
<p>
506-
<?php echo $article->getBody() ?>
506+
<?php echo $article->getBody() ?>
507507
</p>
508508

509509
Including this template from any other template is simple:
@@ -587,9 +587,9 @@ The ``recentList`` template is perfectly straightforward:
587587

588588
{# src/Acme/ArticleBundle/Resources/views/Article/recentList.html.twig #}
589589
{% for article in articles %}
590-
<a href="/article/{{ article.slug }}">
591-
{{ article.title }}
592-
</a>
590+
<a href="/article/{{ article.slug }}">
591+
{{ article.title }}
592+
</a>
593593
{% endfor %}
594594

595595
.. code-block:: html+php
@@ -722,9 +722,9 @@ correctly:
722722

723723
{# src/Acme/ArticleBundle/Resources/views/Article/recentList.html.twig #}
724724
{% for article in articles %}
725-
<a href="{{ path('article_show', { 'slug': article.slug }) }}">
726-
{{ article.title }}
727-
</a>
725+
<a href="{{ path('article_show', { 'slug': article.slug }) }}">
726+
{{ article.title }}
727+
</a>
728728
{% endfor %}
729729

730730
.. code-block:: html+php

0 commit comments

Comments
 (0)