Skip to content

Commit

Permalink
chomp newline to avoid rendering bug
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbox committed Dec 2, 2024
1 parent d678a80 commit 9dc60a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/code_block.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 " ") -}}
Expand Down

0 comments on commit 9dc60a7

Please sign in to comment.