Enabled rst files to escape for parentheses after brackets

(cherry picked from commit a720993cc8)
This commit is contained in:
João Álvaro Ferreira 2018-12-10 17:26:27 +00:00 committed by Rémi Verschelde
parent c42cacfc3d
commit 69673367a1
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ def rstize_text(text, cclass):
escape_post = True escape_post = True
# Properly escape things like `[Node]s` # 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 post_text = '\ ' + post_text
next_brac_pos = post_text.find('[',0) next_brac_pos = post_text.find('[',0)