Merge branch 'origin-maint'

This commit is contained in:
Eric Schulte 2012-05-18 09:07:05 -04:00
commit fc5d53d910
1 changed files with 7 additions and 1 deletions

View File

@ -217,7 +217,13 @@ which defaults to the value of `org-export-blocks-witheld'."
(when replacement
(delete-region match-start match-end)
(goto-char match-start) (insert replacement)
(unless preserve-indent
(if preserve-indent
;; indent only the code block markers
(save-excursion
(indent-line-to indentation) ; indent end_block
(goto-char match-start)
(indent-line-to indentation)) ; indent begin_block
;; indent everything
(indent-code-rigidly match-start (point) indentation)))))
;; cleanup markers
(set-marker match-start nil)