Skip to content

Commit 9dc60a7

Browse files
committed
chomp newline to avoid rendering bug
1 parent d678a80 commit 9dc60a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/partials/code_block.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
{{- if $snippet -}}
5656
{{- errorf "Snippets only work for imported text blocks (%s)" .Position -}}
5757
{{- end -}}
58-
{{- $text = partial "strip_indent.html" (dict "content" .Inner "pos" .Position) -}}
58+
{{- $text = chomp (partial "strip_indent.html" (dict "content" .Inner "pos" .Position)) -}}
5959
{{- end -}}
6060

6161
{{- if (hasPrefix $text " ") -}}

0 commit comments

Comments
 (0)