From 2262c255e23dd44aeee92505e67feb4739c4ec17 Mon Sep 17 00:00:00 2001 From: skilchen Date: Wed, 18 Jul 2018 07:51:39 +0200 Subject: [PATCH] let runnableExamples start in a new paragraph (#8355) fixes #8121, fixes #8346 --- compiler/docgen.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/docgen.nim b/compiler/docgen.nim index 6e2111c754..75b599ae91 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -288,7 +288,7 @@ proc getAllRunnableExamples(d: PDoc; n: PNode; dest: var Rope) = of nkCallKinds: if n[0].kind == nkSym and n[0].sym.magic == mRunnableExamples and n.len >= 2 and n.lastSon.kind == nkStmtList: - dispA(d.conf, dest, "\n$1\n", + dispA(d.conf, dest, "\n

$1

\n", "\n\\textbf{$1}\n", [rope"Examples:"]) inc d.listingCounter let id = $d.listingCounter