RST opt.list to have priority over def.list (#17845)
This commit is contained in:
parent
1568ae23c6
commit
3824fd3f9a
2 changed files with 28 additions and 2 deletions
|
|
@ -1867,10 +1867,10 @@ proc whichSection(p: RstParser): RstNodeKind =
|
|||
elif match(p, p.idx, "(e) ") or match(p, p.idx, "e) ") or
|
||||
match(p, p.idx, "e. "):
|
||||
result = rnEnumList
|
||||
elif isDefList(p):
|
||||
result = rnDefList
|
||||
elif isOptionList(p):
|
||||
result = rnOptionList
|
||||
elif isDefList(p):
|
||||
result = rnDefList
|
||||
else:
|
||||
result = rnParagraph
|
||||
of tkWord, tkOther, tkWhite:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue