This commit is contained in:
Alexander Wang 2025-02-02 23:13:25 -07:00
parent 992e1a4b33
commit 72055164dc
No known key found for this signature in database
GPG key ID: BE3937D0D52D8927

View file

@ -1413,8 +1413,10 @@ func (f *Field) AST() d2ast.Node {
if f.Composite != nil {
value := f.Composite.AST().(d2ast.Value)
if m, ok := value.(*d2ast.Map); ok {
path := m.Range.Path
// Treat it as multi-line, but not file-map (line 0)
m.Range = d2ast.MakeRange(",1:0:0-2:0:0")
m.Range.Path = path
}
k.Value = d2ast.MakeValueBox(value)
}