[-- Attachment #1: Type: text/plain, Size: 1499 bytes --] Hello, I have a problem with my publishing workflow. Here is the setting of my variable org-publish-projet-alist in my init.org (setq org-publish-project-alist '(("fil-web" :base-directory "./" :base-extension "org" :publishing-directory "./" :preparation-function update-all-dblocks-before-exporting :publishing-function org-html-publish-to-html :html-extension "php" :body-only t :html-postamble: t :html-postamble-format : "<?php include 'signature.php'; ?>" ))) This worked nicely until a few days ago: starting from page.org, it would produce page.php as expected. Today I upgraded my system from ubuntu 18 to ubuntu 20. I have GNU Emacs 26.3, and org-version is 9.3.1 Now, when I want to publish, it gives me the following error : Publishing file /home/lipari/Documents/corsi/IoT/portail/portail-master-info/portail/ue-M1S2-COA/ semainier.org using ‘org-html-publish-to-html’ org-combine-plists: Wrong type argument: plistp, (:base-directory "./" :base-extension "org" :publishing-directory "./" :preparation-function update-all-dblocks-before-exporting :publishing-function org-html-publish-to-html ...) Unfortunately, this completely breaks my long-time functioning workflow for publishing the details of my course on the University portal. Can someone please help me sort out the problem ? Best, Giuseppe Lipari Giuseppe Lipari CRIStAL, Université de Lille [-- Attachment #2: Type: text/html, Size: 3544 bytes --]
Giuseppe Lipari <giulipari@gmail.com> writes:
> (setq org-publish-project-alist
> '(("fil-web"
> :base-directory "./"
> :base-extension "org"
> :publishing-directory "./"
> :preparation-function update-all-dblocks-before-exporting
> :publishing-function org-html-publish-to-html
> :html-extension "php"
> :body-only t
> :html-postamble: t
> :html-postamble-format : "<?php include 'signature.php'; ?>"
This last one seems wrong: the extra space before the colon should probably not be there.
And I'm not sure whethe the colon after the last two properties should be there at all.
--
Nick
"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler
Nick Dokos <ndokos@gmail.com> writes:
>> :body-only t
>> :html-postamble: t
>> :html-postamble-format : "<?php include 'signature.php'; ?>"
>
> This last one seems wrong: the extra space before the colon should probably not be there.
> And I'm not sure whethe the colon after the last two properties should be there at all.
It shouldn't be, it should be:
#+begin_example
:body-only t
:html-postamble t
:html-postamble-format "<?php include 'signature.php'; ?>"
#+end_example
Though the last line may need to be
#+begin_example
:html-postamble-format '((en "<?php include 'signature.php'; ?>"))
#+end_example
or similar.
--
Timothy
[-- Attachment #1: Type: text/plain, Size: 1685 bytes --] Thanks to both ! (I am puzzled at why it worked before, since I did not change my configuration file between updates ... maybe a more robust parser?) The error condition is solved now, the php file is generated. However, the final string <?php ...?> is not in the file. I tried both: #+begin_example :body-only t :html-postamble t :html-postamble-format "<?php include 'signature.php'; ?>" #+end_example and #+begin_example :body-only t :html-postamble t :html-postamble-format '((en "<?php include 'signature.php'; ?>")) #+end_example but no luck. What I want to do is to just append the string '<?php ...?>' at the end of the file, maybe there is a simpler and more idiomatic way of doing it? Thanks again for your help, Giuseppe Lipari CRIStAL, Université de Lille Le ven. 7 mai 2021 à 04:08, Timothy <tecosaur@gmail.com> a écrit : > > Nick Dokos <ndokos@gmail.com> writes: > >> :body-only t > >> :html-postamble: t > >> :html-postamble-format : "<?php include 'signature.php'; ?>" > > > > This last one seems wrong: the extra space before the colon should > probably not be there. > > And I'm not sure whethe the colon after the last two properties should > be there at all. > > It shouldn't be, it should be: > #+begin_example > :body-only t > :html-postamble t > :html-postamble-format "<?php include 'signature.php'; ?>" > #+end_example > > Though the last line may need to be > #+begin_example > :html-postamble-format '((en "<?php include 'signature.php'; ?>")) > #+end_example > or similar. > > -- > Timothy > > [-- Attachment #2: Type: text/html, Size: 3704 bytes --]