docgen: improve alignment of comments (still not perfect) (#15506)
* docgen: improve alignment of comments (still not perfect) * fix error message text in `tunknown_named_parameter` Co-authored-by: narimiran <narimiran@disroot.org>
This commit is contained in:
parent
0426a4d85a
commit
3b901d1e36
3 changed files with 9 additions and 8 deletions
|
|
@ -183,9 +183,9 @@ proc put(g: var TSrcGen, kind: TokType, s: string; sym: PSym = nil) =
|
|||
addPendingNL(g)
|
||||
if s.len > 0:
|
||||
addTok(g, kind, s, sym)
|
||||
inc(g.lineLen, s.len)
|
||||
else:
|
||||
g.pendingWhitespace = s.len
|
||||
inc(g.lineLen, s.len)
|
||||
|
||||
proc putComment(g: var TSrcGen, s: string) =
|
||||
if s.len == 0: return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue