(bugfix): fix ugly node labels in org-roam graph (#314)

This commit is contained in:
Jethro Kuan 2020-03-17 13:00:45 +08:00 committed by GitHub
parent c14ac7b613
commit 81dd880357
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1315,7 +1315,7 @@ into a digraph."
(insert
(format " \"%s\" [label=\"%s\", shape=%s, URL=\"org-protocol://roam-file?file=%s\", tooltip=\"%s\"];\n"
file
(xml-escape-string shortened-title)
(s-replace "\"" "\\\"" shortened-title)
org-roam-graph-node-shape
(url-hexify-string file)
(xml-escape-string title)))))