lisp/ob-C.el: Small fix to include expansion

* lisp/ob-C.el (org-babel-C-expand-C): When expanding include
directives, wrap filenames in quotes if they do not begin with "<".

TINYCHANGE
This commit is contained in:
Brandon Guttersohn 2020-05-24 18:23:26 +02:00 committed by Bastien
parent 14878f3f9a
commit 44cb98fdb6
1 changed files with 4 additions and 1 deletions

View File

@ -232,7 +232,10 @@ its header arguments."
(list
;; includes
(mapconcat
(lambda (inc) (format "#include %s" inc))
(lambda (inc)
(if (string-prefix-p "<" inc)
(format "#include %s" inc)
(format "#include \"%s\"" inc)))
includes "\n")
;; defines
(mapconcat