Skip to content

Commit

Permalink
feat: generate an empty canvas is map is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
owulveryck committed Jun 13, 2023
1 parent 725796d commit 5517d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/wtg2svglive/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func generateSVG(filePath string) ([]byte, error) {
}
defer f.Close()
err = p.Parse(f)
if err != nil {
if err != nil && err != wtg.ErrEmptyMap {
return nil, err
}
if len(p.InvalidEntries) != 0 {
Expand Down

0 comments on commit 5517d28

Please sign in to comment.