org-export: Do not use broken link handler on non-link elements
* lisp/ox.el (org-export-data): Only catch 'org-link-broken on link objects. Signaling 'org-link-broken for other element types, should not happen and we should _not_ export such elements as "" or "[BROKEN LINK...]".
This commit is contained in:
parent
14532ec6a5
commit
e5cf0bc840
|
@ -1908,8 +1908,10 @@ Return a string."
|
|||
(org-element-property :archivedp data)))
|
||||
(let ((transcoder (org-export-transcoder data info)))
|
||||
(or (and (functionp transcoder)
|
||||
(broken-link-handler
|
||||
(funcall transcoder data nil info)))
|
||||
(if (eq type 'link)
|
||||
(broken-link-handler
|
||||
(funcall transcoder data nil info))
|
||||
(funcall transcoder data nil info)))
|
||||
;; Export snippets never return a nil value so
|
||||
;; that white spaces following them are never
|
||||
;; ignored.
|
||||
|
|
Loading…
Reference in New Issue