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-05-26 13:17:10 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-06-14 15:08:40 +0300
commit35fa192838ecfa244335fca957e55d3956a48665 (patch)
tree7a1dac873c8c219d0ca933aa2a36891d92764302 /hugolib
parent09ac73338198ceb143c1e5edc5859ab735cd80bb (diff)
deps: Udpate to github.com/alecthomas/chroma/v2
Fixes #9932 Fixes #9931
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/page__per_output.go2
-rw-r--r--hugolib/testhelpers_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/page__per_output.go b/hugolib/page__per_output.go
index e69d32e27..de70047c9 100644
--- a/hugolib/page__per_output.go
+++ b/hugolib/page__per_output.go
@@ -36,7 +36,7 @@ import (
"github.com/gohugoio/hugo/markup/converter"
- "github.com/alecthomas/chroma/lexers"
+ "github.com/alecthomas/chroma/v2/lexers"
"github.com/gohugoio/hugo/lazy"
bp "github.com/gohugoio/hugo/bufferpool"
diff --git a/hugolib/testhelpers_test.go b/hugolib/testhelpers_test.go
index 1a2c423f7..46fa35deb 100644
--- a/hugolib/testhelpers_test.go
+++ b/hugolib/testhelpers_test.go
@@ -853,7 +853,7 @@ func (th testHelper) assertFileContentRegexp(filename string, matches ...string)
r := regexp.MustCompile(match)
matches := r.MatchString(content)
if !matches {
- fmt.Println(match+":\n", content)
+ fmt.Println("Expected to match regexp:\n"+match+"\nGot:\n", content)
}
th.Assert(matches, qt.Equals, true)
}