Created
April 20, 2015 16:22
-
-
Save sritchie/5c1c1474a671902fbf9d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ob-core.el b/ob-core-old.el | |
index ba82d88..a6ffcc4 100644 | |
--- a/ob-core.el | |
+++ b/ob-core-old.el | |
@@ -1368,14 +1368,7 @@ specified in the properties of the current outline entry." | |
(or body ""))))) | |
(preserve-indentation (or org-src-preserve-indentation | |
(save-match-data | |
- (string-match "-i\\>" switches)))) | |
- (header-args (apply #'org-babel-merge-params | |
- org-babel-default-header-args | |
- (when (boundp lang-headers) (eval lang-headers)) | |
- (append | |
- (org-babel-params-from-properties lang) | |
- (list (org-babel-parse-header-arguments | |
- (org-no-properties (or (match-string 4) "")))))))) | |
+ (string-match "-i\\>" switches))))) | |
(list lang | |
;; get block body less properties, protective commas, and indentation | |
(with-temp-buffer | |
@@ -1383,7 +1376,13 @@ specified in the properties of the current outline entry." | |
(insert (org-unescape-code-in-string body)) | |
(unless preserve-indentation (org-do-remove-indentation)) | |
(buffer-string))) | |
- header-args | |
+ (apply #'org-babel-merge-params | |
+ org-babel-default-header-args | |
+ (when (boundp lang-headers) (eval lang-headers)) | |
+ (append | |
+ (org-babel-params-from-properties lang) | |
+ (list (org-babel-parse-header-arguments | |
+ (org-no-properties (or (match-string 4) "")))))) | |
switches | |
block-indentation))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment