qvge icon indicating copy to clipboard operation
qvge copied to clipboard

DOT: newline detection in labels

Open casiosmu opened this issue 3 years ago • 2 comments

When I open a GraphViz (*.gv) file exported from Gramps, the \n in labels are not interpreted as newlines.

digraph GRAMPS_graph
{
  center="true"; 
  charset="utf8";    
  edge [len=0.5 style=solid fontsize=14];
  node [style=filled fontsize=14];    
  "I1111" [ shape="box" style="solid,filled" label="Any Name\nBirthday" ];    /* this is shown as 1 line instead of 2 */
  "F2222" [ shape="ellipse" style="filled" label="" ];
  "I1111" -> "F2222" [ arrowhead=normal arrowtail=none dir=both ];
/* ... */
  }

casiosmu avatar Feb 01 '21 20:02 casiosmu

Fixed for 0.7.dev.

ArsMasiuk avatar Feb 14 '21 13:02 ArsMasiuk

Merged back to trunk

ArsMasiuk avatar Feb 14 '21 13:02 ArsMasiuk