Closed Jibec closed 1 year ago
Your observation is consistent with the design. As stated on the docs page at https://docs.asciidoctor.org/pdf-converter/latest/theme/add-running-content/#attribute-references
If you reference an attribute which is not defined, all the text on that same line in the running content will be dropped.
You can find the tests that verify this behavior here: https://github.com/asciidoctor/asciidoctor-pdf/blob/aecd91a324bb055664bcb90fddf92877c175c710/spec/running_content_spec.rb#L1505-L1530
This behavior was borrowed from Asciidoctor's predecessor as a way to control which lines are used. We're not planning on changing this behavior.
If you need help using this feature, please ask in the project chat at https://chat.antora.org.
Hi,
the issue: when a variable name is undefined in footer content, the pdf generation succeed, but the footer content will be empty.
expected behavior: I would like the command line to trigger a warning or an error when an undefined variable is used in the theme.yml
how to reproduce: change the value of the content to use an undefined variable the whole content will be empty
Here is my footer definition:
versions:
command used:
thanks a lot for your work, asciidor is a good tooling