diff --git a/layouts/partials/indent.html b/layouts/partials/indent.html index 652f682fb9..dfcdbff61d 100644 --- a/layouts/partials/indent.html +++ b/layouts/partials/indent.html @@ -1,3 +1,3 @@ {{- $content := .content }} {{- $indention := .indention }} -{{- replaceRE "(\\r\\n|\\r|\\n)" (printf "$1%s" $indention) (replaceRE "^" $indention (trim $content " \n\r\t")) | safeHTML }} \ No newline at end of file +{{- replaceRE "(\\r\\n|\\r|\\n)" (printf "$1%s" $indention) (replaceRE "^" $indention (trim $content "\n\r\t ")) | safeHTML }} \ No newline at end of file diff --git a/layouts/partials/shortcodes/expand.html b/layouts/partials/shortcodes/expand.html index 781bd7414a..f78f2724be 100644 --- a/layouts/partials/shortcodes/expand.html +++ b/layouts/partials/shortcodes/expand.html @@ -23,7 +23,7 @@ {{ $title | .RenderString }}
{{- end }} \ No newline at end of file diff --git a/layouts/partials/shortcodes/notice.html b/layouts/partials/shortcodes/notice.html index dbc09772a3..4b8d6d269e 100644 --- a/layouts/partials/shortcodes/notice.html +++ b/layouts/partials/shortcodes/notice.html @@ -59,7 +59,7 @@ {{- end }} {{- if $hasContent }} {{- end }} diff --git a/layouts/partials/shortcodes/tabs.html b/layouts/partials/shortcodes/tabs.html index 543099de7e..4075b8df8d 100644 --- a/layouts/partials/shortcodes/tabs.html +++ b/layouts/partials/shortcodes/tabs.html @@ -95,7 +95,7 @@ data-tab-item="{{ .itemid }}" class="tab-content tab-panel-style cstyle {{ .style }}{{ cond (eq $idx 0) " active" ""}}"{{ if .color }} style="--VARIABLE-BOX-color: {{ .color }};"{{ end }}>{{ end }} +{{ if ne "<" (substr (strings.TrimLeft "\n\r\t " .content) 0 1) }}
{{ end }} {{ .content | safeHTML }}