Skip to content

Commit 7ab91bb

Browse files
committed
Fixed code-blocks spacing
1 parent c671408 commit 7ab91bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

guides/controller.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ is displayed so that the cause of the exception can be easily tracked down.
534534
Of course, you're free to throw any ``Exception`` class in your controller
535535
- Symfony2 will automatically return a 500 HTTP response code.
536536

537-
.. code-block::php
537+
.. code-block:: php
538538
539539
throw new \Exception('Something went wrong!');
540540

guides/page_creation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ which uses the following naming convention:
223223
In this case, ``HelloBundle`` is the bundle name, ``Hello`` is the
224224
controller, and ``index.html.twig`` the template:
225225

226-
.. code-block::jinja
226+
.. code-block:: jinja
227227
:linenos:
228228
229229
{# src/Application/HelloBundle/Resources/views/Hello/index.html.twig #}
@@ -246,7 +246,7 @@ The parent template, ``::layout.html.twig``, is missing both the bundle and cont
246246
portions of its name (hence the double colon (``::``) at the beginning). This
247247
means that the template lives outside of the bundles and in the ``app`` directory:
248248

249-
.. code-block::jinja
249+
.. code-block:: jinja
250250
251251
{% app/views/layout.html.twig %}
252252
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

0 commit comments

Comments
 (0)