summaryrefslogtreecommitdiffstats
path: root/docs/content/en/methods/shortcode/InnerDeindent.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/methods/shortcode/InnerDeindent.md')
-rw-r--r--docs/content/en/methods/shortcode/InnerDeindent.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/content/en/methods/shortcode/InnerDeindent.md b/docs/content/en/methods/shortcode/InnerDeindent.md
index b5f5cf206..ab4263709 100644
--- a/docs/content/en/methods/shortcode/InnerDeindent.md
+++ b/docs/content/en/methods/shortcode/InnerDeindent.md
@@ -38,7 +38,7 @@ With this shortcode, calling `Inner` instead of `InnerDeindent`:
{{< code file=layouts/shortcodes/gallery.html >}}
<div class="gallery">
- {{ trim .Inner "\r\n" | .Page.RenderString }}
+ {{ .Inner | strings.TrimSpace | .Page.RenderString }}
</div>
{{< /code >}}
@@ -69,7 +69,7 @@ Although technically correct per the CommonMark specification, this is not what
{{< code file=layouts/shortcodes/gallery.html >}}
<div class="gallery">
- {{ trim .InnerDeindent "\r\n" | .Page.RenderString }}
+ {{ .InnerDeindent | strings.TrimSpace | .Page.RenderString }}
</div>
{{< /code >}}