diff --git a/layouts/shortcodes/button.html b/layouts/shortcodes/button.html
index df50d78..f616eb7 100644
--- a/layouts/shortcodes/button.html
+++ b/layouts/shortcodes/button.html
@@ -1,12 +1,12 @@
-{{ $ref := "" }}
-{{ $target := "" }}
-{{ with .Get "href" }}
- {{ $ref = . }}
- {{ $target = "_blank" }}
-{{ end }}
-{{ with .Get "relref" }}
- {{ $ref = relref $ . }}
-{{ end }}
+{{- $ref := "" }}
+{{- $target := "" -}}
+{{- with .Get "href" -}}
+ {{- $ref = . -}}
+ {{- $target = "_blank" -}}
+{{- end -}}
+{{- with .Get "relref" -}}
+ {{- $ref = relref $ . -}}
+{{- end -}}
- {{ .Inner | .Page.RenderString }}
+ {{ .InnerDeindent | .Page.RenderString }}
diff --git a/layouts/shortcodes/details.html b/layouts/shortcodes/details.html
index cc867aa..e23d036 100644
--- a/layouts/shortcodes/details.html
+++ b/layouts/shortcodes/details.html
@@ -2,6 +2,6 @@
{{- $summary := cond .IsNamedParams (.Get "title") (.Get 0) -}}
- {{ .Inner | .Page.RenderString }} + {{ .InnerDeindent | .Page.RenderString }}