nop.exe removes label="" attributes
Steps to reproduce
Send this graph to nop.exe:
digraph G {
myNodeImg [shape=none label="" image="img.png" height=2 width=4 imagescale=true]
myNode [label = "something"]
myNode -> myNodeImg
}
You will get normalized version:
digraph G {
myNodeImg [height=2,
image="img.png",
imagescale=true,
shape=none,
width=4];
myNode [label=something];
myNode -> myNodeImg;
}
Visualize both of them with dot.exe -O -Tjpg
.
Expected Behaviour
Graphs expected to look identical, all attributes and their values should migrate to pretty-printed version without changes.
Actual Behaviour
label=""
attribute is lost.
myNodeImg after nop.exe gets a "myNodeImg" text label on top of it.
OS Version
Windows 11
Graphviz Version
dot - graphviz version 8.0.1 (20230327.1645)
Additional info
Maybe this explanation is somehow related to this issue: #1337 (comment 59341772)