dotplugin icon indicating copy to clipboard operation
dotplugin copied to clipboard

HTML-based nodes cause errors

Open kenahoo opened this issue 2 years ago • 0 comments

The following simple HTML-based node seems to confuse the parser, as seen in the screenshot below:

digraph {
  my_table [
    label=<<TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
      <TR><TD COLSPAN="2">Title</TD></TR>
      <TR><TD>Left</TD><TD>Right</TD></TR>
      </TABLE>>
    shape=plain
    style=filled
    fillcolor=cornsilk
  ]
}

However, dot does render it correctly: Screen Shot 2023-01-04 at 5 17 16 PM

The error in the tooltip is DotTokenType.= expected, got '<TR><TD>Left</TD><TD...'.

I'm using version 1.4.1 of the plugin on IntelliJ IDEA 2022.3.1 (Ultimate Edition), on Mac OS 12.6 (Monterey) with an M1 chip. I'm using the workaround in https://github.com/bzixilu/dotplugin/issues/26#issuecomment-1371529811 to get rendering to work.

kenahoo avatar Jan 04 '23 23:01 kenahoo