From 972356e7aa01c3195daf20f1cbd082c9b0afbf2b Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sat, 20 Jul 2024 17:47:48 -0700 Subject: [PATCH] Trim spaces, tabs from code end --- layouts/shortcodes/paige/code.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/paige/code.html b/layouts/shortcodes/paige/code.html index d85acb3f..0fb9b318 100644 --- a/layouts/shortcodes/paige/code.html +++ b/layouts/shortcodes/paige/code.html @@ -1,4 +1,4 @@ -{{ $content := trim .InnerDeindent "\f\n\r\v" }} +{{ $content := .InnerDeindent | strings.TrimLeft "\f\n\r\v" | strings.TrimRight "\f\n\r\t\v " }} {{ $lang := .Get 0 | default (.Get "lang") | default "plaintext" }} {{ $options := .Get "options" }}