ob-ref: bug fix in new function

* lisp/ob-ref.el (org-babel-ref-goto-headline-id): Fix bug.
This commit is contained in:
Eric Schulte 2011-06-28 14:20:10 -07:00
parent 554021ad7f
commit cb67a439b1
1 changed files with 1 additions and 0 deletions

View File

@ -82,6 +82,7 @@ the variable."
out))))))
(defun org-babel-ref-goto-headline-id (id)
(goto-char (point-min))
(let ((rx (regexp-quote id)))
(or (re-search-forward
(concat "^[ \t]*:CUSTOM_ID:[ \t]+" rx "[ \t]*$") nil t)