mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-08-24 23:02:52 +00:00
org-export: Fix filters returning a nil value
* contrib/lisp/org-export.el (org-export-filter-apply-functions): If a filter returns nil, return last non-nil value.
This commit is contained in:
parent
dc116caf10
commit
4d789f4c30
|
@ -2449,7 +2449,7 @@ specified filters, if any, are called first."
|
|||
(catch 'exit
|
||||
(dolist (filter filters value)
|
||||
(let ((result (funcall filter value (plist-get info :back-end) info)))
|
||||
(cond ((not value))
|
||||
(cond ((not result) value)
|
||||
((equal value "") (throw 'exit nil))
|
||||
(t (setq value result)))))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue