ob: allow detangling of text containing '\'s -- Thanks to Seth Burleigh

* lisp/ob.el (org-babel-update-block-body): Literal argument to
  `replace-match' to allow insertion of text containing '\'.
This commit is contained in:
Eric Schulte 2011-01-13 10:00:39 -07:00
parent 0ec831d2c8
commit 47537dcda8
1 changed files with 1 additions and 1 deletions

View File

@ -1594,7 +1594,7 @@ file's directory then expand relative links."
(if (not (org-babel-where-is-src-block-head)) (if (not (org-babel-where-is-src-block-head))
(error "not in source block") (error "not in source block")
(save-match-data (save-match-data
(replace-match (concat (org-babel-trim new-body) "\n") nil nil nil 5)) (replace-match (concat (org-babel-trim new-body) "\n") nil t nil 5))
(indent-rigidly (match-beginning 5) (match-end 5) 2))) (indent-rigidly (match-beginning 5) (match-end 5) 2)))
(defun org-babel-merge-params (&rest plists) (defun org-babel-merge-params (&rest plists)