From 3b3936b9a98f42c737eea03c8bff0c1c2487024b Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 25 Feb 2012 11:58:43 +0100 Subject: [PATCH] org-export: Do not ignore automatically elements with empty output * contrib/lisp/org-export.el (org-export-data): org-export: Do not ignore automatically elements with empty output. --- contrib/lisp/org-export.el | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/contrib/lisp/org-export.el b/contrib/lisp/org-export.el index 64caff810..3439aec8f 100644 --- a/contrib/lisp/org-export.el +++ b/contrib/lisp/org-export.el @@ -1545,9 +1545,7 @@ Return transcoded string." (t (funcall transcoder blob contents info))))) ;; 4. Return results. (cond - ;; Discard nil results. Also ignore BLOB from further - ;; traversals in parse tree. - ((not results) (org-export-ignore-element blob info) nil) + ((not results) nil) ;; No filter for a full document. ((eq type 'org-data) results) ;; Otherwise, update INFO, append the same white space @@ -1563,10 +1561,6 @@ Return transcoded string." (make-string post-blank ?\n)) (concat results (make-string post-blank ? )))) backend info))) - ;; If BLOB was transcoded into an empty string, ignore it - ;; from subsequent traversals. - (unless (org-string-nw-p results) - (org-export-ignore-element blob info)) ;; Eventually return string. results))))))) (org-element-contents data) "")) -- 2.11.4.GIT