Skip to content

Commit 39bd42a

Browse files
committed
docs: fix line breaks of multishortcode #1206
1 parent 9bc97fd commit 39bd42a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/layouts/partials/shortcodes/multishortcode.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{{- $page := .page }}
22

3-
{{- $calls := transform.Unmarshal (printf "%s\n\n" .content) }}
3+
{{- /* Normalize line endings to CRLF so that \r survives YAML single-quoted string folding */}}
4+
{{- $normalizedContent := replaceRE `\r?\n` "\r\n" .content }}
5+
{{- $calls := transform.Unmarshal (printf "%s\n\n" $normalizedContent) }}
46
{{- if reflect.IsMap $calls }}
57
{{- $calls = slice $calls }}
68
{{- end }}

layouts/partials/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9.0.3+c09e16702ef04eb2464fc37cbaaee2a1e10e7cf6
1+
9.0.3+9bc97fdf9eaf3af61af9bcc11db2e010de83af95

0 commit comments

Comments
 (0)