summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-01-24 13:08:36 +0100
committerRémi Verschelde <rverschelde@gmail.com>2020-01-24 13:08:36 +0100
commit97cc2e53f6fbba7e85a2cbb79f38e077a6e511f7 (patch)
tree168bb98db09f9bf46c38fd5c2ade638f518c857e
parent1c6d1fcf956b882fc8a14fa595b7f1e9b15e1574 (diff)
makerst: Escape reST markup after enums
Fixes #35501.
-rwxr-xr-xdoc/tools/makerst.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/tools/makerst.py b/doc/tools/makerst.py
index 18fc70516e..1ba942585c 100755
--- a/doc/tools/makerst.py
+++ b/doc/tools/makerst.py
@@ -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