org-src: Don't remove tabs when org-src-preserve-indentation is non-nil

This commit is contained in:
Dan Davison 2010-01-28 10:36:29 -05:00
parent ef3c18ed47
commit 3693a47f85
1 changed files with 1 additions and 1 deletions

View File

@ -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 ""))