Răsfoiți Sursa

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.
Jason Yundt 3 ani în urmă
părinte
comite
7f30e81abe
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      doc/tools/make_rst.py

+ 2 - 0
doc/tools/make_rst.py

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