In the HTML-label table an extra empty space is drawn at the top and at the left of node
Steps to reproduce
File input.dot
digraph {
N [shape=none,
label=<<table border="0" bgcolor="orange" cellspacing="1" cellborder="1">
<tr>
<td sides="TL">a</td>
<td sides="T">b</td>
<td sides="TR">c</td>
</tr>
<tr>
<td sides="BL">d</td>
<td COLSPAN="2" sides="">e</td>
</tr>
</table>>];
}
Render with $ dot -Tsvg input.dot -o output.svg
Expected Behaviour
Expected to show the table that fills the node.
Actual Behaviour
The result looks like this, with top and left orange stripes on the outside of the table:
Generated svg:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 6.0.1 (20220911.1526)
-->
<!-- Pages: 1 -->
<svg width="69pt" height="61pt"
viewBox="0.00 0.00 69.00 61.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 57)">
<polygon fill="white" stroke="none" points="-4,4 -4,-57 65,-57 65,4 -4,4"/>
<!-- N -->
<g id="node1" class="node">
<title>N</title>
<polygon fill="orange" stroke="none" points="8,-4 8,-49 53,-49 53,-4 8,-4"/>
<polyline fill="none" stroke="black" points="23.5,-47.5 9.5,-47.5 9.5,-26.5"/>
<text text-anchor="start" x="13" y="-33.3" font-family="Times New Roman,serif" font-size="14.00">a</text>
<polyline fill="none" stroke="black" points="38.5,-47.5 24.5,-47.5"/>
<text text-anchor="start" x="27.5" y="-33.3" font-family="Times New Roman,serif" font-size="14.00">b</text>
<polyline fill="none" stroke="black" points="52.5,-26.5 52.5,-47.5 39.5,-47.5"/>
<text text-anchor="start" x="42.5" y="-33.3" font-family="Times New Roman,serif" font-size="14.00">c</text>
<polyline fill="none" stroke="black" points="9.5,-25.5 9.5,-4.5 23.5,-4.5"/>
<text text-anchor="start" x="12.5" y="-11.3" font-family="Times New Roman,serif" font-size="14.00">d</text>
<polygon fill="none" stroke="black" points="24.5,-4.5 24.5,-25.5 52.5,-25.5 52.5,-4.5 24.5,-4.5"/>
<text text-anchor="start" x="35" y="-11.3" font-family="Times New Roman,serif" font-size="14.00">e</text>
</g>
</g>
</svg>
OS Version
Windows 10
Graphviz Version
dot - graphviz version 6.0.1 (20220911.1526)
Edited by reregaga