Correcting myself: > Try the following: > > #+begin_src emacs-lisp > (defun my-par-in-inline-fn (backend) > (unless (org-export-derived-backend-p backend 'latex) > (let ((org-footnote-section "My section")) > (org-footnote-normalize) > (while (re-search-forward "\\par\\s-*" nil t) > (replace-match "\n\n"))))) > > (add-hook 'org-export-before-parsing-hook 'my-par-in-inline-fn) > #+end_src
This should be: #+begin_src emacs-lisp (defun my-par-in-inline-fn (backend) (unless (org-export-derived-backend-p backend 'latex) (org-footnote-normalize) (while (re-search-forward "\\par\\s-*" nil t) (replace-match "\n\n")))) (add-hook 'org-export-before-parsing-hook 'my-par-in-inline-fn) #+end_src -- Nicolas Goaziou