babel: C: Don't trim body when expanding

* ob-C.el (org-babel-C-expand): Don't trim body
This commit is contained in:
Dan Davison 2010-10-21 11:28:11 +01:00
parent bdbc4961c8
commit 86418567cd
1 changed files with 1 additions and 2 deletions

View File

@ -129,7 +129,6 @@ it's header arguments."
(defines (org-babel-read (defines (org-babel-read
(or (cdr (assoc :defines params)) (or (cdr (assoc :defines params))
(org-babel-read (org-entry-get nil "defines" t)))))) (org-babel-read (org-entry-get nil "defines" t))))))
(org-babel-trim
(mapconcat 'identity (mapconcat 'identity
(list (list
;; includes ;; includes
@ -145,7 +144,7 @@ it's header arguments."
;; body ;; body
(if main-p (if main-p
(org-babel-C-ensure-main-wrap body) (org-babel-C-ensure-main-wrap body)
body) "\n") "\n")))) body) "\n") "\n")))
(defun org-babel-C-ensure-main-wrap (body) (defun org-babel-C-ensure-main-wrap (body)
"Wrap body in a \"main\" function call if none exists." "Wrap body in a \"main\" function call if none exists."