blushft / go-diagrams

Create beautiful system diagrams with Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Label quote error

vit1251 opened this issue · comments

Use as label first 8 bytes from SHA1 digest in label and I think that I found some escape problem:

        vkhkhzkc [ fixedsize=true, fontcolor="#2D3436", fontname="Sans-Serif", fontsize=13, height=2.1999999999999997, image="assets/gcp/database/sql.png", imagescale=true, label="2822b7f1...", labelloc=b, shape=none, style=rounded, width=1.4 ];
        xnxdisdb [ fixedsize=true, fontcolor="#2D3436", fontname="Sans-Serif", fontsize=13, height=2.1999999999999997, image="assets/gcp/database/sql.png", imagescale=true, label=ca20af73..., labelloc=b, shape=none, style=rounded, width=1.4 ];

Look like label label=ca20af73... sounds like string is't escape properly by go-diagrams.

As result cath an error in dot processing:

Error: diagram.dot: syntax error in line 30 near '.'