Merge pull request #408 from stardiviner/master

Allow ob-ein auto create directory with parents when specify header argument like :dir "data/images".
This commit is contained in:
John Miller 2018-11-26 07:41:35 -06:00 committed by GitHub
commit c4f23d5ce6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,7 +74,7 @@ For example, call (ein:org-register-lang-mode \"ein-R\" 'R) to define a language
(d ein:org-inline-image-directory)
(tf (concat d "/ob-ein-" f ".png")))
(unless (file-directory-p d)
(make-directory d))
(make-directory d 'parents))
tf))
(defun ein:write-base64-image (img-string file)