From 9dc60a7338e0b1435f5e0c99bce18bcf39802d47 Mon Sep 17 00:00:00 2001 From: Craig Box Date: Mon, 2 Dec 2024 16:01:35 +1300 Subject: [PATCH] chomp newline to avoid rendering bug --- layouts/partials/code_block.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/code_block.html b/layouts/partials/code_block.html index 4cb038bd2c3e..37476d4c74a2 100644 --- a/layouts/partials/code_block.html +++ b/layouts/partials/code_block.html @@ -55,7 +55,7 @@ {{- if $snippet -}} {{- errorf "Snippets only work for imported text blocks (%s)" .Position -}} {{- end -}} - {{- $text = partial "strip_indent.html" (dict "content" .Inner "pos" .Position) -}} + {{- $text = chomp (partial "strip_indent.html" (dict "content" .Inner "pos" .Position)) -}} {{- end -}} {{- if (hasPrefix $text " ") -}}