From e4f57ca22df400068187d63bad4e040b1c84ddbc Mon Sep 17 00:00:00 2001 From: Zen-CODE Date: Sat, 9 Aug 2014 22:13:14 +0200 Subject: [PATCH] doc: fixed code block highlighting in lang.py --- kivy/lang.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kivy/lang.py b/kivy/lang.py index b0af95a5f..458cef41e 100755 --- a/kivy/lang.py +++ b/kivy/lang.py @@ -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,8 +221,10 @@ 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': print('normal')