From 3105c789a3d69e8e140a31e5b66438debac3a416 Mon Sep 17 00:00:00 2001 From: KaiKimera Date: Wed, 10 Apr 2024 01:39:49 +0300 Subject: [PATCH] 2024-04-09 22:39:49 --- layouts/shortcodes/file.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/file.html b/layouts/shortcodes/file.html index a80caa5..26aa054 100644 --- a/layouts/shortcodes/file.html +++ b/layouts/shortcodes/file.html @@ -59,7 +59,7 @@ {{ if (eq (($lang) | len) 0) }} {{ $lang = ((replace (path.Ext (.Name)) "." "") | default "plaintext") }} {{ end }} -
{{ ((.Content) | chomp) }}
+
{{ (trim (.Content) "\n\r") }}