parent
97764c8dc9
commit
f02e159b56
2 changed files with 3 additions and 1 deletions
|
|
@ -2067,7 +2067,7 @@ proc parseOptionList(p: var RstParser): PRstNode =
|
||||||
c.add(b)
|
c.add(b)
|
||||||
result.add(c)
|
result.add(c)
|
||||||
else:
|
else:
|
||||||
dec p.idx # back to tkIndent
|
if currentTok(p).kind != tkEof: dec p.idx # back to tkIndent
|
||||||
break
|
break
|
||||||
|
|
||||||
proc parseDefinitionList(p: var RstParser): PRstNode =
|
proc parseDefinitionList(p: var RstParser): PRstNode =
|
||||||
|
|
|
||||||
|
|
@ -1362,6 +1362,7 @@ Test1
|
||||||
output)
|
output)
|
||||||
check("""<th align="left">-d</th><td align="left">option</td>""" in
|
check("""<th align="left">-d</th><td align="left">option</td>""" in
|
||||||
output)
|
output)
|
||||||
|
check "<p>option</p>" notin output
|
||||||
|
|
||||||
test "Option list 3 (double /)":
|
test "Option list 3 (double /)":
|
||||||
let input = dedent """
|
let input = dedent """
|
||||||
|
|
@ -1378,6 +1379,7 @@ Test1
|
||||||
output)
|
output)
|
||||||
check("""<th align="left">-d</th><td align="left">option</td>""" in
|
check("""<th align="left">-d</th><td align="left">option</td>""" in
|
||||||
output)
|
output)
|
||||||
|
check "<p>option</p>" notin output
|
||||||
|
|
||||||
test "Roles: subscript prefix/postfix":
|
test "Roles: subscript prefix/postfix":
|
||||||
let expected = "See <sub>some text</sub>."
|
let expected = "See <sub>some text</sub>."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue