Unflatten remove empty labels
I'm using using invisible nodes in the graph (style = invis
).
These nodes are not visible but the space for them is still allocated in the graph so the graph is bigger then it should be. So I set zero dimensions for these invisible nodes (height = 0, width = 0
). Then the dot command print warning that
Warning: node '__MW', graph 'example' size too small for label
So I added empty label (label = ""
) and it works well.
But when I modify the dot file by unflatten, then empty labels are removed and warnings are back.
I think unflatten should keep empty labels in the dot source code.
There is a simplified test case. Notice that the label is missing in the unflatten output.
$ cat example.dot
digraph example {
node [fixedsize = true]
__MW [height = 0,
label = ""
style = invis,
width = 0];
}
$ unflatten example.dot
digraph example {
node [fixedsize=true];
__MW [height=0,
style=invis,
width=0];
}