summaryrefslogtreecommitdiffstats
path: root/hugolib/content_render_hooks_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-01-31 07:49:00 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-01-31 07:51:05 +0100
commit585958645372e6219239247dbac02e447d2b355b (patch)
treec4ec8259c5c00e9ba8599c2747d25c280f62acb5 /hugolib/content_render_hooks_test.go
parent2d159e9cc7a25832e4b0cad226b149f7c4624708 (diff)
hubolig: Add a render hook whitespace test
See #6832
Diffstat (limited to 'hugolib/content_render_hooks_test.go')
-rw-r--r--hugolib/content_render_hooks_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/hugolib/content_render_hooks_test.go b/hugolib/content_render_hooks_test.go
index 5290ebcbd..1db232d05 100644
--- a/hugolib/content_render_hooks_test.go
+++ b/hugolib/content_render_hooks_test.go
@@ -80,6 +80,8 @@ layout: mylayout
[Some Text](https://www.google.com "Google's Homepage")
+,[No Whitespace Please](https://gohugo.io),
+
`, "blog/p3.md", `---
@@ -143,7 +145,10 @@ SHORT3|
`)
b.AssertFileContent("public/customview/p1/index.html", `.Render: myrender: Custom View|P4: PARTIAL4`)
- b.AssertFileContent("public/blog/p2/index.html", `PARTIAL`)
+ b.AssertFileContent("public/blog/p2/index.html",
+ `PARTIAL
+,Cool Page2|https://gohugo.io|Title: |Text: No Whitespace Please|END,`,
+ )
b.AssertFileContent("public/blog/p3/index.html", `PARTIAL3`)
// We may add type template support later, keep this for then. b.AssertFileContent("public/docs/docs1/index.html", `Link docs section: Docs 1|END`)
b.AssertFileContent("public/blog/p4/index.html", `<p>IMAGE: Cool Page With Image||/images/Dragster.jpg|Title: image title|Text: Drag Racing|END</p>`)