Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-26 12:42:21 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-26 23:54:36 +0300
commit10928a4f781c2faf704825ef95234125812ad860 (patch)
tree6d53312b301ad5259eb509fbdd13efa6c5c199e5 /hugolib
parentafd63bf7d56194a6aa5d32483151d71fa0b84f3a (diff)
Remove the trailing new line in .Code
Fixes #9572
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/integrationtest_builder.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/hugolib/integrationtest_builder.go b/hugolib/integrationtest_builder.go
index ed68783a1..b7b43624f 100644
--- a/hugolib/integrationtest_builder.go
+++ b/hugolib/integrationtest_builder.go
@@ -28,6 +28,9 @@ import (
)
func NewIntegrationTestBuilder(conf IntegrationTestConfig) *IntegrationTestBuilder {
+ // Code fences.
+ conf.TxtarString = strings.ReplaceAll(conf.TxtarString, "§§§", "```")
+
data := txtar.Parse([]byte(conf.TxtarString))
c, ok := conf.T.(*qt.C)