mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 18:36:26 +00:00
Backport commit 3c4c8ca06 from Emacs
* lisp/ob-ref.el (org-babel-ref-resolve): Fix unescaped character literal. Fix all unescaped character literals 3c4c8ca06e3306ccbcd07e354eb51abe53b52d22 Philipp Stephani Sun May 7 13:22:34 2017 +0200
This commit is contained in:
parent
93e5d92383
commit
5eeccc7230
|
@ -131,7 +131,7 @@ the variable."
|
||||||
;; if ref is indexed grab the indices -- beware nested indices
|
;; if ref is indexed grab the indices -- beware nested indices
|
||||||
(when (and (string-match "\\[\\([^\\[]+\\)\\]$" ref)
|
(when (and (string-match "\\[\\([^\\[]+\\)\\]$" ref)
|
||||||
(let ((str (substring ref 0 (match-beginning 0))))
|
(let ((str (substring ref 0 (match-beginning 0))))
|
||||||
(= (cl-count ?( str) (cl-count ?) str))))
|
(= (cl-count ?\( str) (cl-count ?\) str))))
|
||||||
(setq index (match-string 1 ref))
|
(setq index (match-string 1 ref))
|
||||||
(setq ref (substring ref 0 (match-beginning 0))))
|
(setq ref (substring ref 0 (match-beginning 0))))
|
||||||
;; assign any arguments to pass to source block
|
;; assign any arguments to pass to source block
|
||||||
|
|
Loading…
Reference in a new issue