Skip to content

Commit

Permalink
use dedent in rst.nim, refs nim-lang#17257 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Apr 29, 2021
1 parent 3cee236 commit 8732fb9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/packages/docutils/rst.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2253,8 +2253,7 @@ proc parseEnumList(p: var RstParser): PRstNode =
(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)
Expand Down

0 comments on commit 8732fb9

Please sign in to comment.