diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-04-30 09:54:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-30 18:54:47 +0200 |
commit | 3192995ac97ad0648b6d1e5a5a1a42d403b37e72 (patch) | |
tree | a620eb1ad1c7eac02b5ff6a28f5fdaeac1f9bf20 /lib/packages | |
parent | 76f93877cdb2a2baf28eed6edda5bcc96f4ef404 (diff) | |
download | Nim-3192995ac97ad0648b6d1e5a5a1a42d403b37e72.tar.gz |
close #16646; `since` now works with bootstrap nim post csources_v1 (#17895)
* revive #16627 now that csources_v1 was merged * use dedent in rst.nim, refs https://github.com/nim-lang/Nim/pull/17257#discussion_r589025683 * fix test and improve rendering of a rst warning
Diffstat (limited to 'lib/packages')
-rw-r--r-- | lib/packages/docutils/rst.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/packages/docutils/rst.nim b/lib/packages/docutils/rst.nim index 6ad466716..223e57bc4 100644 --- a/lib/packages/docutils/rst.nim +++ b/lib/packages/docutils/rst.nim @@ -2250,11 +2250,10 @@ proc parseEnumList(p: var RstParser): PRstNode = let n = p.line + p.tok[j].line let msg = "\n" & """ not enough indentation on line $2 - (should be at column $3 if it's a continuation of enum. list), + (should be at column $3 if it's a continuation of enum. list), or no blank line after line $1 (if it should be the next paragraph), or no escaping \ at the beginning of line $1 - (if lines $1..$2 are a normal paragraph, not enum. list)""". - unindent(8) + (if lines $1..$2 are a normal paragraph, not enum. list)""".dedent let c = p.col + requiredIndent + ColRstOffset rstMessage(p, mwRstStyle, msg % [$(n-1), $n, $c], p.tok[j].line, p.tok[j].col) |