Merge pull request #2372 from ZhenShuo2021/fix/icon-newline

🐛 Fix(icon): trim white space and line break
This commit is contained in:
Nuno C. authored and GitHub committed 2025-08-03 01:40:15 +01:00
commit c852d9293c
2 files changed
+12 -10

No files matched your search

+4 -4
View File
@@ -1,6 +1,6 @@
{{ $icon := resources.Get (print "icons/" . ".svg") }}
{{ if $icon }}
{{- $icon := resources.Get (print "icons/" . ".svg") -}}
{{- if $icon -}}
<span class="relative block icon">
{{ $icon.Content | safeHTML }}
{{- $icon.Content | safeHTML -}}
</span>
{{ end }}
{{- end -}}