Browse Source

makerst: Escape reST markup after enums

Fixes #35501.
Rémi Verschelde 5 years ago
parent
commit
97cc2e53f6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      doc/tools/makerst.py

+ 1 - 0
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