Selaa lähdekoodia

babel: remove superfluous newlines from tangled C code bodies

Eric Schulte 15 vuotta sitten
vanhempi
commit
32c7ae42c3
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      contrib/babel/lisp/langs/org-babel-C.el

+ 3 - 3
contrib/babel/lisp/langs/org-babel-C.el

@@ -145,9 +145,9 @@ it's header arguments."
                 ;; variables
                 (mapconcat 'org-babel-C-var-to-C vars "\n")
                 ;; body
-                "\n" (if main-p
-                         (org-babel-C-ensure-main-wrap body)
-                       body) "\n") "\n")))
+                (if main-p
+                    (org-babel-C-ensure-main-wrap body)
+                  body) "\n") "\n")))
 
 (defun org-babel-C-ensure-main-wrap (body)
   "Wrap body in a \"main\" function call if none exists."