aboutsummaryrefslogtreecommitdiff
path: root/site/layouts/shortcodes/example.html
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2020-11-13 12:45:11 +0200
committerGitHub <[email protected]>2020-11-13 12:45:11 +0200
commitd5b405ea9adc753ec39bc7309d38bf76291a2cf0 (patch)
tree2d0494ff2a610195a1b3c176d59ff08b6ed3b115 /site/layouts/shortcodes/example.html
parent8a54cf598aba57b6bf48eb193547caa838a26843 (diff)
downloadbootstrap-d5b405ea9adc753ec39bc7309d38bf76291a2cf0.tar.xz
bootstrap-d5b405ea9adc753ec39bc7309d38bf76291a2cf0.zip
example.html: remove extra whitespace (#32143)
If we don't pass `class` to the `placeholder` shortcode, this resulted in two spaces before the `alt` attribute: ```html {{< example >}} {{< placeholder width="64" height="64" >}} {{< /example >}} ``` ```html <img src="..." alt="..."> ```
Diffstat (limited to 'site/layouts/shortcodes/example.html')
-rw-r--r--site/layouts/shortcodes/example.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/layouts/shortcodes/example.html b/site/layouts/shortcodes/example.html
index cebb06ad4..fd20839cb 100644
--- a/site/layouts/shortcodes/example.html
+++ b/site/layouts/shortcodes/example.html
@@ -21,6 +21,6 @@
{{- if eq $show_markup true -}}
{{- $content := replaceRE `<svg class="bd\-placeholder\-img(?:\-lg)?(?: *?bd\-placeholder\-img\-lg)? ?(.*?)".*?<\/svg>\n` `<img src="..." class="$1" alt="...">` $input -}}
- {{- $content = replaceRE `(class=" *?")` "" $content -}}
+ {{- $content = replaceRE ` (class=" *?")` "" $content -}}
{{- highlight (trim $content "\n") $lang "" -}}
{{- end -}}