(fix): fix escaping of backslashes in graph generation (#897)

Fixes #884
This commit is contained in:
Jethro Kuan
2020-07-07 13:07:10 +08:00
committed by GitHub
parent 9766862e84
commit d19a711a44
2 changed files with 10 additions and 1 deletions

View File

@ -33,6 +33,7 @@
;;
;;; Code:
;;;; Library Requires
(require 'dash)
(defvar org-roam-verbose)
@ -68,6 +69,12 @@ to look.
(when org-roam-verbose
(apply #'message `(,(concat "(org-roam) " format-string) ,@args))))
(defun org-roam-string-quote (str)
"Quote STR."
(->> str
(s-replace "\\" "\\\\")
(s-replace "\"" "\\\"")))
(provide 'org-roam-macs)
;;; org-roam-macs.el ends here