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)