]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Tweak scss-docs shortcode
authorXhmikosR <xhmikosr@gmail.com>
Wed, 20 Jan 2021 10:00:57 +0000 (12:00 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 3 Feb 2021 05:15:49 +0000 (07:15 +0200)
Should work now with indented start/end capture statements

site/layouts/shortcodes/scss-docs.html

index 4a525e4dedf2d6281b39ed5df77d7b1f103845dc..16a906e77709408c0763f1af1cf0e519fff95f06 100644 (file)
@@ -13,7 +13,7 @@
 {{- $strip_default := .Get "strip-default" | default "true" -}}
 
 {{- $start := printf "// scss-docs-start %s\n" $name -}}
-{{- $end := printf "\n// scss-docs-end %s" $name -}}
+{{- $end := printf "// scss-docs-end %s" $name -}}
 {{- $regex := printf "%s(.|\n)*%s" $start $end -}}
 
 {{- $css := readFile $file -}}