diff --git a/go.mod b/go.mod index 9e1615f9d2..c0605b8fb2 100644 --- a/go.mod +++ b/go.mod @@ -27,7 +27,7 @@ require ( github.com/ProtonMail/go-crypto v1.3.0 github.com/PuerkitoBio/goquery v1.10.3 github.com/SaveTheRbtz/zstd-seekable-format-go/pkg v0.7.2 - github.com/alecthomas/chroma/v2 v2.20.0 + github.com/alecthomas/chroma/v2 v2.21.1 github.com/blakesmith/ar v0.0.0-20190502131153-809d4375e1fb github.com/blevesearch/bleve/v2 v2.5.6 github.com/buildkite/terminal-to-html/v3 v3.16.8 diff --git a/go.sum b/go.sum index 17be63a395..39a33681c3 100644 --- a/go.sum +++ b/go.sum @@ -89,11 +89,11 @@ github.com/SaveTheRbtz/zstd-seekable-format-go/pkg v0.7.2/go.mod h1:JitQWJ8JuV4Y github.com/alecthomas/assert/v2 v2.11.0 h1:2Q9r3ki8+JYXvGsDyBXwH3LcJ+WK5D0gc5E8vS6K3D0= github.com/alecthomas/assert/v2 v2.11.0/go.mod h1:Bze95FyfUr7x34QZrjL+XP+0qgp/zg8yS+TtBj1WA3k= github.com/alecthomas/chroma/v2 v2.2.0/go.mod h1:vf4zrexSH54oEjJ7EdB65tGNHmH3pGZmVkgTP5RHvAs= -github.com/alecthomas/chroma/v2 v2.20.0 h1:sfIHpxPyR07/Oylvmcai3X/exDlE8+FA820NTz+9sGw= -github.com/alecthomas/chroma/v2 v2.20.0/go.mod h1:e7tViK0xh/Nf4BYHl00ycY6rV7b8iXBksI9E359yNmA= +github.com/alecthomas/chroma/v2 v2.21.1 h1:FaSDrp6N+3pphkNKU6HPCiYLgm8dbe5UXIXcoBhZSWA= +github.com/alecthomas/chroma/v2 v2.21.1/go.mod h1:NqVhfBR0lte5Ouh3DcthuUCTUpDC9cxBOfyMbMQPs3o= github.com/alecthomas/repr v0.0.0-20220113201626-b1b626ac65ae/go.mod h1:2kn6fqh/zIyPLmm3ugklbEi5hg5wS435eygvNfaDQL8= -github.com/alecthomas/repr v0.5.1 h1:E3G4t2QbHTSNpPKBgMTln5KLkZHLOcU7r37J4pXBuIg= -github.com/alecthomas/repr v0.5.1/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= +github.com/alecthomas/repr v0.5.2 h1:SU73FTI9D1P5UNtvseffFSGmdNci/O6RsqzeXJtP0Qs= +github.com/alecthomas/repr v0.5.2/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= github.com/alexbrainman/sspi v0.0.0-20250919150558-7d374ff0d59e h1:4dAU9FXIyQktpoUAgOJK3OTFc/xug0PCXYCqU0FgDKI= github.com/alexbrainman/sspi v0.0.0-20250919150558-7d374ff0d59e/go.mod h1:cEWa1LVoE5KvSD9ONXsZrj0z6KqySlCCNKHlLzbqAt4= github.com/andybalholm/brotli v1.2.0 h1:ukwgCxwYrmACq68yiUqwIWnGY0cTPox/M94sVwToPjQ= diff --git a/modules/indexer/code/search_test.go b/modules/indexer/code/search_test.go index 2413ddec0b..b8fe852bb8 100644 --- a/modules/indexer/code/search_test.go +++ b/modules/indexer/code/search_test.go @@ -87,8 +87,8 @@ func TestHighlightSearchResultCode(t *testing.T) { Code: "func main() {\n\tfmt.Println(\"mark this\")\n}", Result: []template.HTML{ "func main() {", - "\tfmt.Println("mark this")", - "}", + "\tfmt.Println("mark this")", + "}", }, }, { @@ -98,8 +98,8 @@ func TestHighlightSearchResultCode(t *testing.T) { Code: "func main() {\n\tfmt.Println(\"mark this 😊\")\n}", Result: []template.HTML{ "func main() {", - "\tfmt.Println("mark this 😊")", - "}", + "\tfmt.Println("mark this 😊")", + "}", }, }, } diff --git a/modules/markup/html_test.go b/modules/markup/html_test.go index c7c53e2678..512a7aa02a 100644 --- a/modules/markup/html_test.go +++ b/modules/markup/html_test.go @@ -795,7 +795,7 @@ func TestRender_FilePreview(t *testing.T) { ``+ `
C`+"\n"+`C`+"\n"+`C`+"\n"+`C`+"\n"+`C`+"\n"+`C`+"\n"+`C`+"\n"+`C`+"\n"+`C`+"\n"+`C`+"\n"+`C`+"\n"+`C`+"\n"+`C`+"\n"+`C`+"\n"+`C`+"\n"+`C`+"\n"+`C`+"\n"+`C`+"\n"+`B`+"\n"+`B`+"\n"+`B`+"\n"+`B`+"\n"+`B`+"\n"+`B`+"\n"+`C`+"\n"+`C`+"\n"+`// HelloWorld prints "Hello World"
-func HelloWorld() {
+func HelloWorld() {
fmt.Println("Hello World")
-}
+}