Skip to content

Commit

Permalink
docs: Fix Sphinx error on non-YAML code snippet
Browse files Browse the repository at this point in the history
This problem was just introduced by commit cec4f33 "Clarify disable-line
and parser errors, workaround" and produced this error when building
documentation:

    docs/disable_with_comments.rst:120:Could not lex literal_block as
    "yaml". Highlighting skipped.
  • Loading branch information
adrienverge committed Oct 26, 2022
1 parent cec4f33 commit eb7b7ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/disable_with_comments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ post-template processing).
Example of a Jinja2 code that cannot be parsed as YAML because it contains
invalid tokens ``{%`` and ``%}``:

.. code-block:: yaml
.. code-block::
# This file IS NOT valid YAML and will procuce syntax errors
{% if extra_info %}
Expand Down

0 comments on commit eb7b7ca

Please sign in to comment.