diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go
index 5af4ad774..ab2d1f334 100644
--- a/hugolib/shortcode_test.go
+++ b/hugolib/shortcode_test.go
@@ -480,9 +480,9 @@ e`,
## {{% c %}}`,
filepath.FromSlash("public/sect/doc5/index.html"), "\n\n
b
\n\nc
\n"},
// #2223 pygments
- {"sect/doc6.md", "\n```bash\nb: {{< b >}} c: {{% c %}}\n```\n",
+ {"sect/doc6.md", "\n```bash\nb = {{< b >}} c = {{% c %}}\n```\n",
filepath.FromSlash("public/sect/doc6/index.html"),
- `b: b c: c`},
+ `b`},
// #2249
{"sect/doc7.ad", `_Shortcodes:_ *b: {{< b >}} c: {{% c %}}*`,
filepath.FromSlash("public/sect/doc7/index.html"),