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.
This commit is contained in:
Nicolas Goaziou 2012-02-20 16:10:27 +01:00
parent 387bd87c73
commit d426d0f030
1 changed files with 5 additions and 5 deletions

View File

@ -1466,7 +1466,7 @@ Assume point is at beginning or end of the block."
(if (eobp) (point) (point-at-bol)))) (if (eobp) (point) (point-at-bol))))
(value (org-element-parse-secondary-string (value (org-element-parse-secondary-string
(org-remove-indentation raw-val) (org-remove-indentation raw-val)
(cdr (assq 'verse org-element-string-restrictions))))) (cdr (assq 'verse-block org-element-string-restrictions)))))
`(verse-block `(verse-block
(:begin ,begin (:begin ,begin
:end ,end :end ,end
@ -2544,10 +2544,10 @@ superscript.")
(item entity inline-babel-call latex-fragment macro radio-target (item entity inline-babel-call latex-fragment macro radio-target
sub/superscript target text-markup) sub/superscript target text-markup)
(keyword entity latex-fragment macro sub/superscript text-markup) (keyword entity latex-fragment macro sub/superscript text-markup)
(table entity latex-fragment macro text-markup) (table entity latex-fragment macro target text-markup)
(verse entity footnote-reference inline-babel-call inline-src-block (verse-block entity footnote-reference inline-babel-call inline-src-block
latex-fragment line-break link macro radio-target sub/superscript latex-fragment line-break link macro radio-target
target text-markup time-stamp)) sub/superscript target text-markup time-stamp))
"Alist of secondary strings restrictions. "Alist of secondary strings restrictions.
When parsed, some elements have a secondary string which could When parsed, some elements have a secondary string which could