Skip to content

Commit 4731a17

Browse files
committed
📚 DOCS: Fix code block
1 parent 18b9902 commit 4731a17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ Warning messages
134134

135135
Warning messages are displayed in the Sphinx build output, for problematic inputs, these all have the type ``jinja2``, which can be used to `suppress them in the Sphinx configuration <https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-suppress_warnings>`__:
136136

137-
```python
138-
suppress_warnings = ["jinja2"]
139-
```
137+
.. code-block:: python
138+
139+
suppress_warnings = ["jinja2"]
140140
141141
Since is difficult / impossible to map the source line numbers, from the template to the Jinja rendered content,
142142
problems with the parsing of the rendered content always refer to the first line number either of the ``jinja`` directive, or the template file (when using the ``file`` option).

0 commit comments

Comments
 (0)