From 339c08ce5bcbedb02536e553e231a7f2fe0bf518 Mon Sep 17 00:00:00 2001 From: ee7 <45465154+ee7@users.noreply.github.com> Date: Mon, 22 Jun 2020 08:12:50 +0200 Subject: [PATCH] [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 by 42a64245f8. 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 commit 1e484ed62b499432883575e6b29c930874377d7a) --- lib/pure/pegs.nim | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/lib/pure/pegs.nim b/lib/pure/pegs.nim index 13df549b41..bff71362be 100644 --- a/lib/pure/pegs.nim +++ b/lib/pure/pegs.nim @@ -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 - # - # Call - # Ident "leave" - # StmtList - # - # Call - # Ident "pkChar" - # StmtList - # Call - # Ident "leave" - # StmtList - # - # ... + # StmtList + # Call + # Ident "pkNonTerminal" + # StmtList + # Call + # Ident "enter" + # StmtList + # + # Call + # Ident "leave" + # StmtList + # + # Call + # Ident "pkChar" + # StmtList + # Call + # Ident "leave" + # StmtList + # + # ... proc mkEnter(hdName, body: NimNode): NimNode = template helper(hdName, body) {.dirty.} = template hdName(s, p, start) =