diff --git a/src/nimib/renders.nim b/src/nimib/renders.nim
index cbcd9b79..29426b41 100644
--- a/src/nimib/renders.nim
+++ b/src/nimib/renders.nim
@@ -18,7 +18,7 @@ proc useHtmlBackend*(doc: var NbDoc) =
{{>nbCodeOutput}}"""
doc.partials["nbCodeSkip"] = """{{>nbCodeSource}}"""
doc.partials["nbCapture"] = """{{>nbCodeOutput}}"""
- doc.partials["nbCodeSource"] = "
{{&codeHighlighted}}
"
+ doc.partials["nbCodeSource"] = """{{&codeHighlighted}}
"""
doc.partials["nbCodeOutput"] = """{{#output}}{{output}}
{{/output}}"""
doc.partials["nimibCode"] = doc.partials["nbCode"]
doc.partials["nbImage"] = """