Exporting a org-mode document causes (wrong-type-argument arrayp nil) if there is a footnote definition without any body (empty footnote). If one tries to export a subtree with no footnotes, ox-hugo will error out if an empty footnote exists elsewhere in the org-mode document.
Expected Behavior
ox-hugo exports the document and handles empty footnotes.
How to Reproduce the Issue
Using the example org file, first try C-x C-e H H on each subtree, it fails regardless of which subtree is exported. C-x C-e H A also errors.
Example Org File
#+hugo_base_dir: hugo
* test post
:PROPERTIES:
:EXPORT_FILE_NAME: test_post
:EXPORT_DATE: 2023-02-06T18:35:00-05:00
:END:
example text with empty footnote[fn:1]
* Test post 2
:PROPERTIES:
:EXPORT_FILE_NAME: test_post2
:EXPORT_DATE: 2023-02-06T18:36:00-05:00
:END:
This will fail if you try to export this subtree (=C-x C-e H H= with
cursor on this subtree) because of the other post's empty footnote.
* Footnotes
[fn:1]
Debug Info
# Debug information for `ox-hugo`
## Emacs Version
GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars)
## Org Version
Org mode version 9.5.5 (release_9.5.5 @ /nix/store/c185j73k7rdfki612v0g1arm4c7ah3g4-emacs-28.2/share/emacs/28.2/lisp/org/)
## Hugo Version
hugo v0.106.0+extended linux/amd64 BuildDate=unknown VendorInfo=nixpkgs
### Org `load-path` shadows
No Org mode shadows found in `load-path`
## `ox-hugo` defcustoms
Actual Behavior
Exporting a org-mode document causes
(wrong-type-argument arrayp nil)
if there is a footnote definition without any body (empty footnote). If one tries to export a subtree with no footnotes, ox-hugo will error out if an empty footnote exists elsewhere in the org-mode document.Expected Behavior
ox-hugo exports the document and handles empty footnotes.
How to Reproduce the Issue
Using the example org file, first try
C-x C-e H H
on each subtree, it fails regardless of which subtree is exported.C-x C-e H A
also errors.Example Org File
Generated Markdown File or Error
Backtrace:
Ox-Hugo Debug Information
Debug Info
# Debug information for `ox-hugo` ## Emacs Version GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) ## Org Version Org mode version 9.5.5 (release_9.5.5 @ /nix/store/c185j73k7rdfki612v0g1arm4c7ah3g4-emacs-28.2/share/emacs/28.2/lisp/org/) ## Hugo Version hugo v0.106.0+extended linux/amd64 BuildDate=unknown VendorInfo=nixpkgs ### Org `load-path` shadows No Org mode shadows found in `load-path` ## `ox-hugo` defcustoms