]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Fix "If" example in documentation (#1337)
authorAdam Johnson <me@adamj.eu>
Tue, 26 Jan 2021 13:38:00 +0000 (13:38 +0000)
committerGitHub <noreply@github.com>
Tue, 26 Jan 2021 13:38:00 +0000 (05:38 -0800)
Fix "If" example in documentation

docs/templates.rst

index d69c709f3f3b7415fef24c6c666260faf9710458..14de875e3603a37edf227a9c42123c1e4994bdb5 100644 (file)
@@ -1387,7 +1387,7 @@ The `else` part is optional.  If not provided, the else block implicitly
 evaluates into an :class:`Undefined` object (regardless of what ``undefined``
 in the environment is set to):
 
-.. sourcecode:: jinja
+.. code-block:: jinja
 
     {{ "[{}]".format(page.title) if page.title }}