aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2020-03-07 13:37:40 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2020-03-07 13:37:40 +0100
commit7df4251b7256dbf1efdd197f158d70ea8c761894 (patch)
treea5a0559a1e7db51b1fb5bec344b5f1b654460741
parent050d5a83de701af6e8bc20a90e1de5ab9ce95356 (diff)
#169, Remove whitespaces around content in tabs, just to be safe.
-rw-r--r--layouts/shortcodes/tabs.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/shortcodes/tabs.html b/layouts/shortcodes/tabs.html
index 7aace73..982f6a0 100644
--- a/layouts/shortcodes/tabs.html
+++ b/layouts/shortcodes/tabs.html
@@ -3,13 +3,13 @@
{{ $group := printf "tabs-%s" $id }}
<div class="book-tabs">
-{{- range $index, $tab := .Scratch.Get $group -}}
+{{- range $index, $tab := .Scratch.Get $group -}}
<input type="radio" class="hidden" name="{{ $group }}" id="{{ printf "%s-%d" $group $index }}" {{ if not $index }}checked="checked"{{ end }} />
<label for="{{ printf "%s-%d" $group $index }}">
- {{ $tab.Name }}
+ {{- $tab.Name -}}
</label>
<div class="book-tabs-content markdown-inner">
- {{ .Content | markdownify }}
+ {{- .Content | markdownify -}}
</div>
{{- end -}}
</div>