summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoão Álvaro Ferreira <joaoalvaro.ferreira@hotmail.com>2018-12-10 17:26:27 +0000
committer <Alvaro@FIREBOY.localdomain>2018-12-11 12:58:57 +0000
commita720993cc8ee53e635c254ddbc2996c1f79f9a55 (patch)
tree788d6bf1bfe2d6e79ab32bd528cae6b7f26e5536 /doc
parentfa024537a39c24bf9fb2e24063acee0daf63dfc1 (diff)
Enabled rst files to escape for parentheses after brackets
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/tools/makerst.py2
1 files changed, 1 insertions, 1 deletions
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)