From 44cb98fdb6b4d774382c21983b479ea430fdc5b0 Mon Sep 17 00:00:00 2001 From: Brandon Guttersohn Date: Sun, 24 May 2020 18:23:26 +0200 Subject: [PATCH] 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 --- lisp/ob-C.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/ob-C.el b/lisp/ob-C.el index 3a26bc014..c3e72c680 100644 --- a/lisp/ob-C.el +++ b/lisp/ob-C.el @@ -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