From a720993cc8ee53e635c254ddbc2996c1f79f9a55 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: Enabled rst files to escape for parentheses after brackets --- 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 7b7cc52547..9e83dfb55e 100755 --- a/doc/tools/makerst.py +++ b/doc/tools/makerst.py @@ -280,7 +280,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) -- cgit v1.2.3