mirror of https://github.com/kivy/kivy.git
doc: fixed code block highlighting in lang.py
This commit is contained in:
parent
24df4fc250
commit
e4f57ca22d
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue