forked from mirrors/org-mode
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:
parent
14878f3f9a
commit
44cb98fdb6
|
@ -232,7 +232,10 @@ its header arguments."
|
||||||
(list
|
(list
|
||||||
;; includes
|
;; includes
|
||||||
(mapconcat
|
(mapconcat
|
||||||
(lambda (inc) (format "#include %s" inc))
|
(lambda (inc)
|
||||||
|
(if (string-prefix-p "<" inc)
|
||||||
|
(format "#include %s" inc)
|
||||||
|
(format "#include \"%s\"" inc)))
|
||||||
includes "\n")
|
includes "\n")
|
||||||
;; defines
|
;; defines
|
||||||
(mapconcat
|
(mapconcat
|
||||||
|
|
Loading…
Reference in New Issue