Real nice to see ASCII output!
Slight issue with newlines in labels: they appear to get ignored by the layout engine, resulting in broken output:
Input:
foobar -> buzbux: "foo\nbar"
buzbux: {
label: "some\ntext"
}
Expected:
┌──────────┐
│ foobar │
│ │
└──────────┘
│
foo
bar
│
▼
┌──────────┐
│ │
│ some │
│ text │
│ │
└──────────┘
Actual:
┌─────────┐
│ foobar │
│ │
└─────────┘
│
foo
bar
│
▼
┌──────────┐
│ │
│some
text │
│ │
└──────────┘
https://play.d2lang.com/?script=SsvPT0osUtC1U0gqrUoqrbBSUErLz4_JS0osUuKCCVVzKSjkJCal5lgpKBXn56bG5JWkVpQocdVyAQIAAP__&ascii=1&
Real nice to see ASCII output!
Slight issue with newlines in labels: they appear to get ignored by the layout engine, resulting in broken output:
Input:
foobar -> buzbux: "foo\nbar" buzbux: { label: "some\ntext" }Expected:
┌──────────┐ │ foobar │ │ │ └──────────┘ │ foo bar │ ▼ ┌──────────┐ │ │ │ some │ │ text │ │ │ └──────────┘Actual:
┌─────────┐ │ foobar │ │ │ └─────────┘ │ foo bar │ ▼ ┌──────────┐ │ │ │some text │ │ │ └──────────┘https://play.d2lang.com/?script=SsvPT0osUtC1U0gqrUoqrbBSUErLz4_JS0osUuKCCVVzKSjkJCal5lgpKBXn56bG5JWkVpQocdVyAQIAAP__&ascii=1&