From d426d0f03028c76ec83de0b6f80502cba9783ab0 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 20 Feb 2012 16:10:27 +0100 Subject: [PATCH] org-element: Allow targets in tables * contrib/lisp/org-element.el (org-element-string-restrictions): Allow targets in tables. Also fix wrong symbol for verse-blocks. (org-element-verse-block-parser): Apply change. --- contrib/lisp/org-element.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/lisp/org-element.el b/contrib/lisp/org-element.el index 2bb51d374..806468be8 100644 --- a/contrib/lisp/org-element.el +++ b/contrib/lisp/org-element.el @@ -1466,7 +1466,7 @@ Assume point is at beginning or end of the block." (if (eobp) (point) (point-at-bol)))) (value (org-element-parse-secondary-string (org-remove-indentation raw-val) - (cdr (assq 'verse org-element-string-restrictions))))) + (cdr (assq 'verse-block org-element-string-restrictions))))) `(verse-block (:begin ,begin :end ,end @@ -2544,10 +2544,10 @@ superscript.") (item entity inline-babel-call latex-fragment macro radio-target sub/superscript target text-markup) (keyword entity latex-fragment macro sub/superscript text-markup) - (table entity latex-fragment macro text-markup) - (verse entity footnote-reference inline-babel-call inline-src-block - latex-fragment line-break link macro radio-target sub/superscript - target text-markup time-stamp)) + (table entity latex-fragment macro target text-markup) + (verse-block entity footnote-reference inline-babel-call inline-src-block + latex-fragment line-break link macro radio-target + sub/superscript target text-markup time-stamp)) "Alist of secondary strings restrictions. When parsed, some elements have a secondary string which could