From bd4b9d41e8c3c5bbbbacbeb4d8dae6d0bf3278e3 Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Wed, 29 Apr 2020 11:30:39 +0800 Subject: [PATCH] (bugfix): quote graphviz configuration options (#537) Always quote graphviz configuration options. This allows passing configurations with spaces. Fixes #535. --- CHANGELOG.md | 1 + org-roam-graph.el | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f6090a..cb60a44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/org-roam-graph.el b/org-roam-graph.el index a5b3d62..9a1cd74 100644 --- a/org-roam-graph.el +++ b/org-roam-graph.el @@ -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"))) ","))))