From df9ac27b1048713207d2314407079586a080fc4f Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Mon, 19 Dec 2022 18:53:26 +0100 Subject: fix whitespace in shortcodes --- templates/shortcodes/include.md | 2 +- templates/shortcodes/include_range.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/shortcodes/include.md b/templates/shortcodes/include.md index 163f5a0..b9a2141 100644 --- a/templates/shortcodes/include.md +++ b/templates/shortcodes/include.md @@ -1,2 +1,2 @@ {% set data = load_data(path=path) -%} -{{ data -}} +{{ data }} diff --git a/templates/shortcodes/include_range.md b/templates/shortcodes/include_range.md index b8ec9e5..bed515a 100644 --- a/templates/shortcodes/include_range.md +++ b/templates/shortcodes/include_range.md @@ -8,7 +8,7 @@ {% set data = load_data(path=path) | split(pat="\n") | slice(start=start-1, end=end) -%} {% for line in data -%} - {{ line -}} + {{ line }} {% endfor -%} {#- The '-' in the for loop is important, it removes the whitespaces after the stmt. -#} -- cgit v1.2.3