Merge pull request #89380 from dalexeev/doc-fix-rst-gen-for-codeblock-lang-text

Documentation: Fix RST generation for `[codeblock lang=text]`
This commit is contained in:
Rémi Verschelde 2024-03-11 14:02:54 +01:00
commit effb270834
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -1975,7 +1975,7 @@ def format_text_block(
) )
if "lang=text" in tag_state.arguments.split(" "): if "lang=text" in tag_state.arguments.split(" "):
tag_text = "\n.. code::\n" tag_text = "\n.. code:: text\n"
else: else:
tag_text = "\n::\n" tag_text = "\n::\n"