I am using html export feature for org files and I want to change the value of html-postamble (see doc).

Here is the index.org file:

#+title: Home


#+options: html-postamble:"TESTSPACE"

When I export with M-x org-html-export-as-html everything is all right and I have the following at the end of the html produced buffer:

<div id="postamble" class="status">

But if I add a space:

#+title: Home


#+options: html-postamble:"TEST SPACE"

it raises this error I cannot solve: org-export--parse-option-keyword: End of file during parsing


1 Answer 1


This is almost certainly a bug, which you should report to the Org mode mailing list with M-x org-submit-bug-report.

You can work around it though, by doing something like this:

#+TITLE: Home

#+OPTIONS: html-postamble:t
#+BIND: org-html-postamble-format (("en" "Test Case"))


That uses the BIND mechanism to assign a value to org-html-postamble-format for this file only and only during export. The value is an alist with elements of the form (lang format) where both lang and format are strings. The format string can have values interpolated using a % format mechanism. Do C-h v org-html-postamble-format for details.

The BIND mechanism is not enabled by default though, so you will need to add the following to your init file:

(with-eval-after-load 'ox
   (setq org-export-allow-bind-keywords t))
  • Bug reported! Nice workaraound, I will try to make it work. My final goal is to use an elisp function to construct the postamble string. This function needs to be aware of some settings of the current file, do you even think this is possible?
    – pietrodito
    Jun 10, 2022 at 16:38
  • Yes, it should be quite possible, but depending on what exactly you want to do, it might be possible to use org-html-postamble-format which allows you to use some settings from the current file. See its doc string: C-h v org-html-postamble-format
    – NickD
    Jun 10, 2022 at 16:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.