瀏覽代碼

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.
Nicolas Goaziou 13 年之前
父節點
當前提交
3b3936b9a9
共有 1 個文件被更改,包括 1 次插入7 次删除
  1. 1 7
      contrib/lisp/org-export.el

+ 1 - 7
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) ""))