summaryrefslogtreecommitdiff
path: root/lisp/ob-exp.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ob-exp.el')
-rw-r--r--lisp/ob-exp.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ob-exp.el b/lisp/ob-exp.el
index cb64136..6d65496 100644
--- a/lisp/ob-exp.el
+++ b/lisp/ob-exp.el
@@ -269,7 +269,9 @@ this template."
(save-excursion (goto-char end)
(line-end-position)))
(insert replacement)
- (if (org-element-property :preserve-indent element)
+ (if (or org-src-preserve-indentation
+ (org-element-property :preserve-indent
+ element))
;; Indent only the code block markers.
(save-excursion (skip-chars-backward " \r\t\n")
(indent-line-to ind)