From 8b431a802125735f806318d2174d56065309ac31 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Thu, 30 May 2013 15:18:17 +0200 Subject: [PATCH] ob-exp: Tiny cleanup related to 87ab99 * lisp/ob-exp.el (org-babel-exp-process-buffer): Tiny cleanup related to 87ab99f563606494fa147f2d71b20288f41f1d59. --- lisp/ob-exp.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el index d9fb294b2..1aa9c92c8 100644 --- a/lisp/ob-exp.el +++ b/lisp/ob-exp.el @@ -267,10 +267,7 @@ this template." (cons (org-element-property :language element) (let ((params (org-element-property :parameters element))) - (and params (org-split-string params "[ \t]+"))))) - (preserve-indent - (or org-src-preserve-indentation - (org-element-property :preserve-indent element)))) + (and params (org-split-string params "[ \t]+")))))) ;; Execute all non-block elements between POS and ;; current block. (org-babel-exp-non-block-elements pos begin) @@ -291,7 +288,7 @@ this template." (goto-char match-start) (delete-region (point) block-end) (insert replacement) - (if preserve-indent + (if (org-element-property :preserve-indent element) ;; Indent only the code block markers. (save-excursion (skip-chars-backward " \r\t\n") (indent-line-to ind)