]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
markup/goldmark: Fix typo in error message
authorAndreas Deininger <adeininger@urbanonline.de>
Wed, 13 Nov 2024 09:12:26 +0000 (10:12 +0100)
committerGitHub <noreply@github.com>
Wed, 13 Nov 2024 09:12:26 +0000 (10:12 +0100)
markup/goldmark/goldmark_integration_test.go
markup/goldmark/hugocontext/hugocontext.go

index 17b76360db00b11d7f9d2b36f6b8fa78fa3448a1..794f34150a433a737e4efa96dfdf1afe7bea6139 100644 (file)
@@ -821,7 +821,7 @@ title: "p1"
        b := hugolib.Test(t, files, hugolib.TestOptWarn())
 
        b.AssertFileContent("public/p1/index.html", "<!-- raw HTML omitted -->")
-       b.AssertLogContains("WARN  Raw HTML omitted white rendering \"/content/p1.md\"; see https://gohugo.io/getting-started/configuration-markup/#rendererunsafe\nYou can suppress this warning by adding the following to your site configuration:\nignoreLogs = ['warning-goldmark-raw-html']")
+       b.AssertLogContains("WARN  Raw HTML omitted while rendering \"/content/p1.md\"; see https://gohugo.io/getting-started/configuration-markup/#rendererunsafe\nYou can suppress this warning by adding the following to your site configuration:\nignoreLogs = ['warning-goldmark-raw-html']")
 
        b = hugolib.Test(t, strings.ReplaceAll(files, "markup.goldmark.renderer.unsafe = false", "markup.goldmark.renderer.unsafe = true"), hugolib.TestOptWarn())
        b.AssertFileContent("public/p1/index.html", "! <!-- raw HTML omitted -->")
@@ -845,7 +845,7 @@ title: "p1"
        b := hugolib.Test(t, files, hugolib.TestOptWarn())
 
        b.AssertFileContent("public/p1/index.html", "<!-- raw HTML omitted -->")
-       b.AssertLogContains("WARN  Raw HTML omitted white rendering \"/content/p1.md\"; see https://gohugo.io/getting-started/configuration-markup/#rendererunsafe\nYou can suppress this warning by adding the following to your site configuration:\nignoreLogs = ['warning-goldmark-raw-html']")
+       b.AssertLogContains("WARN  Raw HTML omitted while rendering \"/content/p1.md\"; see https://gohugo.io/getting-started/configuration-markup/#rendererunsafe\nYou can suppress this warning by adding the following to your site configuration:\nignoreLogs = ['warning-goldmark-raw-html']")
 
        b = hugolib.Test(t, strings.ReplaceAll(files, "markup.goldmark.renderer.unsafe = false", "markup.goldmark.renderer.unsafe = true"), hugolib.TestOptWarn())
        b.AssertFileContent("public/p1/index.html", "! <!-- raw HTML omitted -->")
index 4098392c497be52935b44c8d26e05cef85aba250..b1f149d0b8637eaec12005e91c4d4cfbacd7c8da 100644 (file)
@@ -157,7 +157,7 @@ func (r *hugoContextRenderer) stripHugoCtx(b []byte) ([]byte, bool) {
 }
 
 func (r *hugoContextRenderer) logRawHTMLEmittedWarn(w util.BufWriter) {
-       r.logger.Warnidf(constants.WarnGoldmarkRawHTML, "Raw HTML omitted white rendering %q; see https://gohugo.io/getting-started/configuration-markup/#rendererunsafe", r.getPage(w))
+       r.logger.Warnidf(constants.WarnGoldmarkRawHTML, "Raw HTML omitted while rendering %q; see https://gohugo.io/getting-started/configuration-markup/#rendererunsafe", r.getPage(w))
 }
 
 func (r *hugoContextRenderer) getPage(w util.BufWriter) any {