|
@@ -1975,7 +1975,7 @@ following the source block."
|
|
|
((org-at-table-p) (org-babel-read-table))
|
|
|
((org-at-item-p) (org-babel-read-list))
|
|
|
((looking-at org-bracket-link-regexp) (org-babel-read-link))
|
|
|
- ((looking-at org-block-regexp) (org-babel-trim (match-string 4)))
|
|
|
+ ((looking-at org-block-regexp) (org-remove-indentation (match-string 4)))
|
|
|
((or (looking-at "^[ \t]*: ") (looking-at "^[ \t]*:$"))
|
|
|
(setq result-string
|
|
|
(org-babel-trim
|
|
@@ -2307,7 +2307,8 @@ file's directory then expand relative links."
|
|
|
(if (not (org-babel-where-is-src-block-head))
|
|
|
(error "Not in a source block")
|
|
|
(save-match-data
|
|
|
- (replace-match (concat (org-babel-trim new-body) "\n") nil t nil 5))
|
|
|
+ (replace-match (concat (org-babel-trim (org-remove-indentation new-body))
|
|
|
+ "\n") nil t nil 5))
|
|
|
(indent-rigidly (match-beginning 5) (match-end 5) 2)))
|
|
|
|
|
|
(defun org-babel-merge-params (&rest plists)
|