From ae48507d66db1fbe9b8fd5e3589941bee362a7ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 23 Feb 2023 08:38:51 +0100 Subject: Fix shortcode error when closing without .Inner Fixes #10672 --- hugolib/shortcode_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hugolib/shortcode_test.go') diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index cd17e7874..eac3de2ce 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -875,7 +875,7 @@ title: "No Inner!" "layouts/shortcodes/noinner.html", `No inner here.`) err := b.BuildE(BuildCfg{}) - b.Assert(err.Error(), qt.Contains, filepath.FromSlash(`"content/mypage.md:4:21": failed to extract shortcode: shortcode "noinner" has no .Inner, yet a closing tag was provided`)) + b.Assert(err.Error(), qt.Contains, filepath.FromSlash(`"content/mypage.md:4:16": failed to extract shortcode: shortcode "noinner" does not evaluate .Inner or .InnerDeindent, yet a closing tag was provided`)) } func TestShortcodeStableOutputFormatTemplates(t *testing.T) { -- cgit v1.2.3