From 1faeb4e680623027cab9c6c7637034c103cd3227 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 9 Aug 2014 00:05:43 +0200 Subject: [PATCH] ox-texinfo: Fix ":COPYING: nil" node properties * lisp/ox-texinfo.el (org-texinfo--generate-menu-list): ":COPYING: nil" is expected to be equivalent to no COPYING property at all. --- lisp/ox-texinfo.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el index cc1d45352..a878c7b96 100644 --- a/lisp/ox-texinfo.el +++ b/lisp/ox-texinfo.el @@ -571,7 +571,7 @@ contextual information." (lambda (head) (and (= (org-export-get-relative-level head info) level) ;; Do not take note of footnotes or copying headlines. - (not (org-element-property :COPYING head)) + (not (org-not-nil (org-element-property :COPYING head))) (not (org-element-property :footnote-section-p head)) ;; Collect headline. head)) @@ -1009,7 +1009,7 @@ holding contextual information." ((org-element-property :footnote-section-p headline) nil) ;; Case 2: This is the `copying' section: ignore it ;; This is used elsewhere. - ((org-element-property :COPYING headline) nil) + ((org-not-nil (org-element-property :COPYING headline)) nil) ;; Case 3: An index. If it matches one of the known indexes, ;; print it as such following the contents, otherwise ;; print the contents and leave the index up to the user.