babel: can open results which don't start on the first column

* contrib/babel/lisp/org-babel.el (org-babel-open-src-block-result):
  now able to handle results which don't start on the first column
This commit is contained in:
Eric Schulte 2010-06-11 08:07:19 -07:00
parent cc1c446791
commit a5712e4b0a
1 changed files with 2 additions and 1 deletions

View File

@ -354,7 +354,8 @@ results already exist."
(goto-char (or (and (not re-run) (org-babel-where-is-src-block-result))
(progn (org-babel-execute-src-block)
(org-babel-where-is-src-block-result))))
(end-of-line 1) (forward-char 1)
(end-of-line 1)
(while (looking-at "[\n\r\t\f ]") (forward-char 1))
;; open the results
(if (looking-at org-bracket-link-regexp)
;; file results