Персональные инструменты
 

Graphviz eats spaces in records

Материал из CustisWiki

Перейти к: навигация, поиск

If:

  • we use «record» shape for nodes;
  • Unicode (non-ascii Unicode labels).
  • Surround record separator «|» with spaces

When Graphviz eats all spaces in label (in record-node).

digraph G { 
 rankdir=LR;  
 node[shape=record style=rounded];
 reclat[label="Ok with spaces (en):|{ AAA AAA AAA | BBB BBB BBB | CCC CCC CCC }"];
 recrus[label="Eats spaces (utf):|{ ААА ААА ААА | ВВВ ВВВ ВВВ | ССС ССС ССС }"];
 rusok [label="Ok with spaces (utf):|{ААА ААА ААА|ВВВ ВВВ ВВВ|ССС ССС ССС}"];
}

[svg]

http://www.graphviz.org/bugs/b957.html