don't add appendix seperator without appendix
This commit is contained in:
parent
ae94c14b4e
commit
405fdbe57f
1 changed files with 3 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue