skanaar / nomnoml

The sassy UML diagram renderer
https://www.nomnoml.com
MIT License
2.7k stars 209 forks source link

Weird spacing on simple layout #201

Closed stolksdorf closed 1 year ago

stolksdorf commented 1 year ago

Tried a pretty simple node and it's rendering a little weird.

#.test: underline
[<test> Operations
    [op1] ->
    [op2] ->
    [op3]
]

image

The three subnodes are not centered and the top subnode gets rendered really close to the container title, while having ample space at the bottom.

If I make the container name smaller, eg. "Ops", the horizontal spacing works, but the vertical is still off.

skanaar commented 1 year ago

The text "Operations" and the [op1] nodes are all in the same partition. Add a "|" separator after "Operations".

You might be looking for this instead:

[Operations| // note this vertical bar
  [op1] -> [op2] -> [op3]
]