From 3693a47f85b0d827c44d3b17e4af94b5cf7d4805 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Thu, 28 Jan 2010 10:36:29 -0500 Subject: [PATCH] org-src: Don't remove tabs when org-src-preserve-indentation is non-nil --- lisp/org-src.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-src.el b/lisp/org-src.el index cdad99b26..1d155cc6f 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -525,7 +525,7 @@ the language, a switch telling if the content should be in a single line." org-edit-src-content-indentation)) (preserve-indentation org-src-preserve-indentation) (delta 0) code line col indent) - (untabify (point-min) (point-max)) + (unless preserve-indentation (untabify (point-min) (point-max))) (save-excursion (goto-char (point-min)) (if (looking-at "[ \t\n]*\n") (replace-match ""))