diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-05-26 12:17:10 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-06-14 14:08:40 +0200 |
commit | 35fa192838ecfa244335fca957e55d3956a48665 (patch) | |
tree | 7a1dac873c8c219d0ca933aa2a36891d92764302 /hugolib | |
parent | 09ac73338198ceb143c1e5edc5859ab735cd80bb (diff) |
deps: Udpate to github.com/alecthomas/chroma/v2
Fixes #9932
Fixes #9931
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/page__per_output.go | 2 | ||||
-rw-r--r-- | hugolib/testhelpers_test.go | 2 |
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) } |