Kungsgeten / org-brain-export

Export org-brain to other formats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exporting headers with spaces (and more)

bepolymathe opened this issue · comments

Hi,

When I try to export, if I have spaces or characters like apostrophes it produces an error in graphviz.

digraph G {
concentrate=true;
obUniversités%20populaires [label="Universités populaires"];
obColloque%20et%20journées%20d’études [label="Colloque et journées d’études"];
}

The error seems to come from the % character and the apostrophes.

I don't know how we could solve... by transforming all these characters with _ ? Or any UTF8 option ?

There seems to be some characters which can not be used in node names i GraphViz. I noticed this with - and /, but there seems to be more. Currently the function org-brain-export--dot-id is responsible for creating the node name. That function should be changed. I think the culprit is file entries, since their ID could be anything. Maybe a hash could be created from their name.