forked from mirrors/org-mode
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,7 +1908,9 @@ Return a string."
|
||||||
(org-element-property :archivedp data)))
|
(org-element-property :archivedp data)))
|
||||||
(let ((transcoder (org-export-transcoder data info)))
|
(let ((transcoder (org-export-transcoder data info)))
|
||||||
(or (and (functionp transcoder)
|
(or (and (functionp transcoder)
|
||||||
|
(if (eq type 'link)
|
||||||
(broken-link-handler
|
(broken-link-handler
|
||||||
|
(funcall transcoder data nil info))
|
||||||
(funcall transcoder data nil info)))
|
(funcall transcoder data nil info)))
|
||||||
;; Export snippets never return a nil value so
|
;; Export snippets never return a nil value so
|
||||||
;; that white spaces following them are never
|
;; that white spaces following them are never
|
||||||
|
|
Loading…
Reference in New Issue