mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 18:32:11 +00:00
[backport] Docs: Fix broken code-block (#14749)
This commit indents the contents of a `code-block` in `httpclient.nim` so that it displays correctly. The bug was introduced by42a64245f8. I did a quick search for other `code-block`s that are broken in the same way, but the only other one I found (in `pegs.nim`) is not included in the generated documentation. (cherry picked from commit1e484ed62b)
This commit is contained in:
@@ -870,26 +870,26 @@ macro mkHandlerTplts(handlers: untyped): untyped =
|
||||
# The AST structure of *handlers[0]*:
|
||||
#
|
||||
# .. code-block::
|
||||
# StmtList
|
||||
# Call
|
||||
# Ident "pkNonTerminal"
|
||||
# StmtList
|
||||
# Call
|
||||
# Ident "enter"
|
||||
# StmtList
|
||||
# <handler code block>
|
||||
# Call
|
||||
# Ident "leave"
|
||||
# StmtList
|
||||
# <handler code block>
|
||||
# Call
|
||||
# Ident "pkChar"
|
||||
# StmtList
|
||||
# Call
|
||||
# Ident "leave"
|
||||
# StmtList
|
||||
# <handler code block>
|
||||
# ...
|
||||
# StmtList
|
||||
# Call
|
||||
# Ident "pkNonTerminal"
|
||||
# StmtList
|
||||
# Call
|
||||
# Ident "enter"
|
||||
# StmtList
|
||||
# <handler code block>
|
||||
# Call
|
||||
# Ident "leave"
|
||||
# StmtList
|
||||
# <handler code block>
|
||||
# Call
|
||||
# Ident "pkChar"
|
||||
# StmtList
|
||||
# Call
|
||||
# Ident "leave"
|
||||
# StmtList
|
||||
# <handler code block>
|
||||
# ...
|
||||
proc mkEnter(hdName, body: NimNode): NimNode =
|
||||
template helper(hdName, body) {.dirty.} =
|
||||
template hdName(s, p, start) =
|
||||
|
||||
Reference in New Issue
Block a user