From: XhmikosR Date: Wed, 20 Jan 2021 10:00:57 +0000 (+0200) Subject: Tweak scss-docs shortcode X-Git-Tag: v5.0.0-beta2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1bb65ef49d1373f224e228e67112a675b390720;p=thirdparty%2Fbootstrap.git Tweak scss-docs shortcode Should work now with indented start/end capture statements --- diff --git a/site/layouts/shortcodes/scss-docs.html b/site/layouts/shortcodes/scss-docs.html index 4a525e4ded..16a906e777 100644 --- a/site/layouts/shortcodes/scss-docs.html +++ b/site/layouts/shortcodes/scss-docs.html @@ -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 -}}