remove spew

This commit is contained in:
Bernard Xie 2023-03-27 15:25:43 -07:00
parent 62faa1ef33
commit 1c71ad40f4
No known key found for this signature in database
GPG key ID: 3C3E0036CE0F892C
2 changed files with 1 additions and 3 deletions

View file

@ -19,7 +19,6 @@ import (
"github.com/alecthomas/chroma/v2/formatters"
"github.com/alecthomas/chroma/v2/lexers"
"github.com/alecthomas/chroma/v2/styles"
"github.com/davecgh/go-spew/spew"
"oss.terrastruct.com/util-go/go2"
@ -1389,7 +1388,6 @@ func RenderText(text string, x, height float64) string {
}
func EmbedFonts(buf *bytes.Buffer, diagramHash, source string, fontFamily *d2fonts.FontFamily, cutSet string) {
spew.Dump(cutSet)
fmt.Fprint(buf, `<style type="text/css"><![CDATA[`)
appendOnTrigger(

2
go.mod generated
View file

@ -6,7 +6,6 @@ require (
cdr.dev/slog v1.4.2-0.20221206192828-e4803b10ae17
github.com/PuerkitoBio/goquery v1.8.0
github.com/alecthomas/chroma/v2 v2.5.0
github.com/davecgh/go-spew v1.1.1
github.com/dop251/goja v0.0.0-20230122112309-96b1610dd4f7
github.com/dsoprea/go-exif/v3 v3.0.0-20221012082141-d21ac8e2de85
github.com/dsoprea/go-png-image-structure/v2 v2.0.0-20210512210324-29b889a6093d
@ -33,6 +32,7 @@ require (
github.com/alecthomas/chroma v0.10.0 // indirect
github.com/andybalholm/cascadia v1.3.1 // indirect
github.com/danwakefield/fnmatch v0.0.0-20160403171240-cbb64ac3d964 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/dlclark/regexp2 v1.8.1 // indirect
github.com/dsoprea/go-logging v0.0.0-20200710184922-b02d349568dd // indirect
github.com/dsoprea/go-utility/v2 v2.0.0-20221003172846-a3e1774ef349 // indirect