emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-publish producing <nil> element tags instead of honoring what is


From: Ihor Radchenko
Subject: Re: org-publish producing <nil> element tags instead of honoring what is specified in :html-divs
Date: Thu, 30 Mar 2023 09:57:22 +0000

Cooper Oscarfono <bleat@baaa.sh> writes:

> In attempting to convert the divs generated for preamble, content, and 
> postamble, by specifying, what I believe to be the appropriate setting 
> within org-publish-project-alist :
>
>
>     :html-divs '((preamble "header" :id "preamble")
>                (content "main" :id "content")
>               (postamble "footer" :id "postamble"))
>
>
> Instead of generating <header id="preamble"...</header>, <main 
> id="content">...</main>, and <footer id="postamble">...</footer>, as 
> expected, I am generating: <nil id="nil" class="status">...</nil>, <nil 
> id="nil" class="content">...</nil>, and <nil id="nil" 
> class="status">...</nil>, respectively.

Looks like double quoting.
You likely have something like
 (setq org-publish-project-alist '(... :html-divs '(...)) ...).

Because of nested "'", the actual value of :html-divs is set to
 (quote (...)) and Org is not able to get preamble/contents/postamble
part from there.

To illustrate try the following

(setq test '(:a '((preamble "a" "b"))))
(assq 'preamble (plist-get test :a))

and then the same but without double quoting

(setq test '(:a ((preamble "a" "b"))))
(assq 'preamble (plist-get test :a))

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]