diff options
author | Joã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 |
commit | a720993cc8ee53e635c254ddbc2996c1f79f9a55 (patch) | |
tree | 788d6bf1bfe2d6e79ab32bd528cae6b7f26e5536 /doc/tools/makerst.py | |
parent | fa024537a39c24bf9fb2e24063acee0daf63dfc1 (diff) |
Enabled rst files to escape for parentheses after brackets
Diffstat (limited to 'doc/tools/makerst.py')
-rwxr-xr-x | doc/tools/makerst.py | 2 |
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) |