(bugfix): quote graphviz configuration options (#537)

Always quote graphviz configuration options. This allows passing
configurations with spaces. Fixes #535.
This commit is contained in:
Jethro Kuan
2020-04-29 11:30:39 +08:00
committed by GitHub
parent 4142300501
commit bd4b9d41e8
2 changed files with 3 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
### Bugfixes
* [#509](https://github.com/jethrokuan/org-roam/pull/509) fix backup files being tracked in database
* [#509](https://github.com/jethrokuan/org-roam/pull/509) fix external org files being tracked in database
* [#537](https://github.com/jethrokuan/org-roam/pull/537) quote graphviz node and edge configuration options to allow multi-word configurations
## 1.1.0 (21-04-2020)

View File

@@ -163,7 +163,8 @@ into a digraph."
(insert (org-roam-graph--dot-option option) ";\n"))
(dolist (attribute '("node" "edge"))
(insert (format " %s [%s];\n" attribute
(mapconcat #'org-roam-graph--dot-option
(mapconcat (lambda (var)
(org-roam-graph--dot-option var nil "\""))
(symbol-value
(intern (concat "org-roam-graph-" attribute "-extra-config")))
","))))