Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions svgscreen/svgscreen.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"github.com/wader/ansisvg/svgscreen/xydim"
)

//go:embed template.svg
var templateSVG string
//go:embed svgscreen.svg.tmpl
var screenSVGTmpl string

type Char struct {
Char string
Expand Down Expand Up @@ -346,7 +346,7 @@ func (s *Screen) Render(w io.Writer) error {
setupCustomColors(s.Background.Custom, &s.Dom.BgCustomColors)

// Create SVG from template
t, err := t.Parse(templateSVG)
t, err := t.Parse(screenSVGTmpl)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion svgscreen/template.svg → svgscreen/svgscreen.svg.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- /*
Tries to generate SVG code comptible with browers and inkscape.
Tries to generate SVG code compatible with browsers and inkscape.
For some reason inkscape seems to not like CSS for rect fill etc that much
so currently using <use> instead.
*/ -}}
Expand Down
Loading