Chomp trailing newline in shortcodes.

This commit is contained in:
Fredrik Jonsson 2025-04-11 18:31:55 +02:00
commit 5bc5ce9a58

View file

@ -3,3 +3,4 @@
{{ $src := .Get "src" -}}
{{ $text := .Get "text" -}}
<a class="button{{ with $class }} {{ . }}{{ end }}" href="{{ $src }}"{{ if $newtab }} target="_blank" rel="noopener noreferrer"{{ end }}>{{ $text }}</a>
{{- /* chomp trailing newline */ -}}