Browse Source

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

Dan Davison 15 năm trước cách đây
mục cha
commit
3693a47f85
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lisp/org-src.el

+ 1 - 1
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 ""))