From 0b6de9a026f7995cc684c7a68cb71d603684eb34 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sun, 4 Sep 2011 10:50:37 -0600 Subject: [PATCH] corrected file insertion for inline results * lisp/ob.el (org-babel-insert-result): Corrected file insertion for inline results. --- lisp/ob.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/ob.el b/lisp/ob.el index 74432e7b5..6fe597a4e 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -1632,6 +1632,7 @@ code ---- the results are extracted in the syntax of the source '(:fmt (lambda (cell) (format "%s" cell)))) "\n")) (goto-char beg) (when (org-at-table-p) (org-table-align))) ((member "file" result-params) + (when inlinep (goto-char inlinep)) (insert result)) (t (goto-char beg) (insert result))) (when (listp result) (goto-char (org-table-end)))