Commit 7c2f6da
committed
fix: prevent double-escaping of newlines in D2 container labels
escape_d2() was applied after name_lines(), which turned the \n line
separators into \\n (literal backslash-n in D2 output). Swapping the
order escapes D2-special characters first, then inserts line breaks
that D2 interprets correctly.1 parent 70f179c commit 7c2f6da
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments