Browse Source

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
Eric Schulte 10 years ago
parent
commit
a5712e4b0a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      contrib/babel/lisp/org-babel.el

+ 2 - 1
contrib/babel/lisp/org-babel.el

@@ -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