From 7f30e81abecd28030775931ea4bdfce45b199390 Mon Sep 17 00:00:00 2001 From: Jason Yundt Date: Mon, 12 Sep 2022 15:51:39 -0400 Subject: Fix invalid literals in generated rst docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- doc/tools/make_rst.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/tools') diff --git a/doc/tools/make_rst.py b/doc/tools/make_rst.py index cd7de085d8..a8569413ec 100755 --- a/doc/tools/make_rst.py +++ b/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. -- cgit v1.2.3