* docgen: move to shared RST state (fix #16990) * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update compiler/docgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update compiler/docgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update compiler/docgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * rename `cmdDoc2` to `cmdDoc` * fix (P)RstSharedState convention * new style of initialization * misc suggestions * 1 more rename * fix a regression Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
This commit is contained in:
parent
128d21be1c
commit
590d457631
8 changed files with 292 additions and 192 deletions
|
|
@ -997,7 +997,7 @@ Test1
|
|||
"""
|
||||
var error5 = new string
|
||||
let output5 = input5.toHtml(error=error5)
|
||||
check(error5[] == "input(6, 1) Error: mismatch in number of footnotes " &
|
||||
check(error5[] == "input(1, 1) Error: mismatch in number of footnotes " &
|
||||
"and their refs: 1 (lines 2) != 0 (lines ) for auto-numbered " &
|
||||
"footnotes")
|
||||
|
||||
|
|
@ -1011,7 +1011,7 @@ Test1
|
|||
"""
|
||||
var error6 = new string
|
||||
let output6 = input6.toHtml(error=error6)
|
||||
check(error6[] == "input(6, 1) Error: mismatch in number of footnotes " &
|
||||
check(error6[] == "input(1, 1) Error: mismatch in number of footnotes " &
|
||||
"and their refs: 1 (lines 3) != 2 (lines 2, 6) for auto-symbol " &
|
||||
"footnotes")
|
||||
|
||||
|
|
@ -1034,7 +1034,8 @@ Test1
|
|||
"""
|
||||
var warnings8 = new seq[string]
|
||||
let output8 = input8.toHtml(warnings=warnings8)
|
||||
check(warnings8[] == @["input(4, 1) Warning: unknown substitution " &
|
||||
# TODO: the line 1 is arbitrary because reference lines are not preserved
|
||||
check(warnings8[] == @["input(1, 1) Warning: unknown substitution " &
|
||||
"\'citation-som\'"])
|
||||
|
||||
# check that footnote group does not break parsing of other directives:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue