loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'Update module github.com/buildkite/terminal-to-html/v3 to v3.13.0' (#4313) from renovate/github.com-buildkite-terminal-to-html-v3-3.x into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4313
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>

+8 -8
+1 -1
go.mod
··· 24 24 github.com/alecthomas/chroma/v2 v2.14.0 25 25 github.com/blakesmith/ar v0.0.0-20190502131153-809d4375e1fb 26 26 github.com/blevesearch/bleve/v2 v2.4.1 27 - github.com/buildkite/terminal-to-html/v3 v3.10.1 27 + github.com/buildkite/terminal-to-html/v3 v3.13.0 28 28 github.com/caddyserver/certmagic v0.21.0 29 29 github.com/chi-middleware/proxy v1.1.1 30 30 github.com/djherbis/buffer v1.2.0
+2 -2
go.sum
··· 143 143 github.com/bsm/ginkgo/v2 v2.12.0/go.mod h1:SwYbGRRDovPVboqFv0tPTcG1sN61LM1Z4ARdbAV9g4c= 144 144 github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA= 145 145 github.com/bsm/gomega v1.27.10/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0H+O0= 146 - github.com/buildkite/terminal-to-html/v3 v3.10.1 h1:znT9eD26LQ59dDJJEpMCwkP4wEptEAPi74hsTBuHdEo= 147 - github.com/buildkite/terminal-to-html/v3 v3.10.1/go.mod h1:qtuRyYs6/Sw3FS9jUyVEaANHgHGqZsGqMknPLyau5cQ= 146 + github.com/buildkite/terminal-to-html/v3 v3.13.0 h1:TBRfvqZWoIpxxiiM9rdIn2bbI7pwxBjlQf8/cbLJnss= 147 + github.com/buildkite/terminal-to-html/v3 v3.13.0/go.mod h1:33sojHDaRBSMwwkKXPEkb5Uc7LKF79rWGurL3ei/GX0= 148 148 github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= 149 149 github.com/caddyserver/certmagic v0.21.0 h1:yDoifClc4hIxhHer3AxUj4buhF+NzRR6torw/AOnuUE= 150 150 github.com/caddyserver/certmagic v0.21.0/go.mod h1:OgUZNXYV/ylYoFJNmoYVR5nntydLNMQISePPgqZTyhc=
+5 -5
modules/markup/console/console.go
··· 58 58 59 59 // Render renders terminal colors to HTML with all specific handling stuff. 60 60 func (Renderer) Render(ctx *markup.RenderContext, input io.Reader, output io.Writer) error { 61 - buf, err := io.ReadAll(input) 62 - if err != nil { 61 + screen := &trend.Screen{} 62 + if _, err := io.Copy(screen, input); err != nil { 63 63 return err 64 64 } 65 - buf = trend.Render(buf) 66 - buf = bytes.ReplaceAll(buf, []byte("\n"), []byte(`<br>`)) 67 - _, err = output.Write(buf) 65 + buf := screen.AsHTML() 66 + buf = strings.ReplaceAll(buf, "\n", `<br>`) 67 + _, err := output.Write([]byte(buf)) 68 68 return err 69 69 } 70 70