don't add appendix seperator without appendix

This commit is contained in:
Alexander Wang 2022-12-31 12:17:05 -08:00
parent ae94c14b4e
commit 405fdbe57f
No known key found for this signature in database
GPG key ID: D89FA31966BDBECE

View file

@ -153,6 +153,9 @@ func generateAppendix(diagram *d2target.Diagram, ruler *textmeasure.Ruler, svg s
}
}
}
if len(lines) == 0 {
return "", 0, 0
}
totalHeight += SPACER
return fmt.Sprintf(`<g x="%d" y="%d" width="%d" height="100%%">%s</g>