diff --git a/d2format/format.go b/d2format/format.go index f6e3cbf04..f56635240 100644 --- a/d2format/format.go +++ b/d2format/format.go @@ -308,7 +308,7 @@ func (p *printer) _map(m *d2ast.Map) { if m.IsFileMap() && nb.IsBoardNode() { currString := p.sb.String() - // if the the character before the special board is not a newline, we add one + // if the two characters before the special board is not a double newline, we add one if currString[len(currString)-2:] != "\n\n" { p.newline() }