Fix invalid literals in generated rst docs

Before this change, API docs that look like this:

	…adding [param character]s to the right of the string.

would turn into rst files that look like this:

	…adding ``character``s to the right of the string.

That reStructuredText is invalid and causes warnings when the docs repo
is built.
This commit is contained in:
Jason Yundt 2022-09-12 15:51:39 -04:00
parent 79b21e96ad
commit 7f30e81abe

View file

@ -1480,6 +1480,8 @@ def format_text_block(
)
tag_text = f"``{link_target}``"
escape_pre = True
escape_post = True
# Formatting directives.