fix and add tests
This commit is contained in:
parent
456799430d
commit
4bd5642e62
2 changed files with 15 additions and 1 deletions
|
|
@ -335,7 +335,7 @@ func (p *printer) _map(m *d2ast.Map) {
|
||||||
if n.GetRange().Start.Line != 0 {
|
if n.GetRange().Start.Line != 0 {
|
||||||
p.newline()
|
p.newline()
|
||||||
}
|
}
|
||||||
if len(m.Nodes) > len(boards) {
|
if i != 0 || len(m.Nodes) > len(boards) {
|
||||||
p.newline()
|
p.newline()
|
||||||
}
|
}
|
||||||
p.node(n)
|
p.node(n)
|
||||||
|
|
|
||||||
|
|
@ -670,6 +670,9 @@ x: @"x/../file"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
steps: {
|
||||||
|
a
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
exp: `layers: {
|
exp: `layers: {
|
||||||
|
|
@ -682,6 +685,10 @@ x: @"x/../file"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
steps: {
|
||||||
|
a
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
|
|
@ -740,6 +747,9 @@ only-layers: {
|
||||||
X
|
X
|
||||||
Y
|
Y
|
||||||
}
|
}
|
||||||
|
layers: {
|
||||||
|
Z
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`,
|
`,
|
||||||
exp: `a
|
exp: `a
|
||||||
|
|
@ -753,6 +763,10 @@ only-layers: {
|
||||||
X
|
X
|
||||||
Y
|
Y
|
||||||
}
|
}
|
||||||
|
|
||||||
|
layers: {
|
||||||
|
Z
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
layers: {
|
layers: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue