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 }}
-{{ if ne "<" (substr (strings.TrimLeft " \n\r\t" $content) 0 1) }}

{{ end }} +{{ if ne "<" (substr (strings.TrimLeft "\n\r\t " $content) 0 1) }}

{{ end }} {{ $content | safeHTML }}

{{- 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 }} -{{ if ne "<" (substr (strings.TrimLeft " \n\r\t" $content) 0 1) }}

{{ end }} +{{ if ne "<" (substr (strings.TrimLeft "\n\r\t " $content) 0 1) }}

{{ end }} {{ $content | safeHTML }} {{- 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 }}>

-{{ if ne "<" (substr (strings.TrimLeft " \n\r\t" .content) 0 1) }}

{{ end }} +{{ if ne "<" (substr (strings.TrimLeft "\n\r\t " .content) 0 1) }}

{{ end }} {{ .content | safeHTML }}

{{- end }} diff --git a/layouts/partials/toc-id.html b/layouts/partials/toc-id.html index 6d9e790d0e..9fa92b98f0 100644 --- a/layouts/partials/toc-id.html +++ b/layouts/partials/toc-id.html @@ -14,7 +14,7 @@ {{- end }} {{- $lastCapital = $capital }} {{- end }} - {{- $toc := trim (partial "toc.html" .) " \n\r\t" }} + {{- $toc := trim (partial "toc.html" .) "\n\r\t " }} {{- if and (not $toc) $toc_pages }} {{- $toc = printf "" }} {{- end }}