doc: fixed code block highlighting in lang.py

This commit is contained in:
Zen-CODE 2014-08-09 22:13:14 +02:00
parent 24df4fc250
commit e4f57ca22d
1 changed files with 6 additions and 2 deletions

View File

@ -207,7 +207,9 @@ In the latter case, multiple single line statements are valid including
multi-line statements that escape their newline, as long as they don't
add an indentation level.
Examples of valid statements are::
Examples of valid statements are:
.. code-block:: python
on_press: if self.state == 'normal': print('normal')
on_state:
@ -219,7 +221,9 @@ Examples of valid statements are::
print([1,2,3,4,
5,6,7])
An example of a invalid statement::
An example of a invalid statement:
.. code-block:: python
on_state:
if self.state == 'normal':