Hello @ll, I noticed that multi line caption works as expected, but there is no way to fill it (at least to my knowledge).
I added a test case that should speak by itself. I do not know a lot of elisp, but if you have some pointer I could try to implement it by myself. Maybe this could be extended to handle also OPTIONS and LocalWords and others. Thanks in advance, Daniele
diff --git a/testing/lisp/test-org.el b/testing/lisp/test-org.el index 39db5bf..7ebac61 100644 --- a/testing/lisp/test-org.el +++ b/testing/lisp/test-org.el @@ -362,6 +362,19 @@ (end-of-line) (org-auto-fill-function) (buffer-string)))))) + ;; Correctly fill the caption. + (should + (equal "#+CAPTION: this is a very very\n#+CAPTION: long caption" + (org-test-with-temp-text "#+CAPTION: this is a very very long caption" + (let ((fill-column 30)) + (org-fill-paragraph) + (buffer-string))))) + (should + (equal "#+CAPTION: this is a very short caption" + (org-test-with-temp-text #+CAPTION: this is a very \n#+CAPTION: short caption" + (let ((fill-column 80)) + (org-fill-paragraph) + (buffer-string)))))