makerst: Escape reST markup after enums

Fixes #35501.
This commit is contained in:
Rémi Verschelde 2020-01-24 13:08:36 +01:00
parent 1c6d1fcf95
commit 97cc2e53f6
1 changed files with 1 additions and 0 deletions

View File

@ -881,6 +881,7 @@ def rstize_text(text, state): # type: (str, State) -> str
inside_code = True
elif cmd.startswith('enum '):
tag_text = make_enum(cmd[5:], state)
escape_post = True
else:
tag_text = make_type(tag_text, state)
escape_post = True