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