From 69673367a1b76229f97064a442f9c3bac79581ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20=C3=81lvaro=20Ferreira?= Date: Mon, 10 Dec 2018 17:26:27 +0000 Subject: [PATCH] Enabled rst files to escape for parentheses after brackets (cherry picked from commit a720993cc8ee53e635c254ddbc2996c1f79f9a55) --- doc/tools/makerst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tools/makerst.py b/doc/tools/makerst.py index 9e767bf3d65..8a1352b4408 100644 --- a/doc/tools/makerst.py +++ b/doc/tools/makerst.py @@ -262,7 +262,7 @@ def rstize_text(text, cclass): escape_post = True # Properly escape things like `[Node]s` - if escape_post and post_text and post_text[0].isalnum(): # not punctuation, escape + if escape_post and post_text and (post_text[0].isalnum() or post_text[0] == "("): # not punctuation, escape post_text = '\ ' + post_text next_brac_pos = post_text.find('[',0)