Explorar o código

babel: Remove protective commas from Org code

Dan Davison %!s(int64=14) %!d(string=hai) anos
pai
achega
3afc34a10b
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      lisp/ob-org.el

+ 2 - 1
lisp/ob-org.el

@@ -47,7 +47,8 @@
 (defun org-babel-execute:org (body params)
   "Execute a block of Org code with.
 This function is called by `org-babel-execute-src-block'."
-  (let ((result-params (split-string (or (cdr (assoc :results params)) ""))))
+  (let ((result-params (split-string (or (cdr (assoc :results params)) "")))
+	(body (replace-regexp-in-string "^," "" body)))
     (cond
      ((member "latex" result-params) (org-babel-org-export body "latex"))
      ((member "html" result-params)  (org-babel-org-export body "html"))