‘org-fill-paragraph’ does not correctly handle ^L characters (a.k.a. form feed, C-q C-l). It should treat them as paragraph separating whitespace, but instead treats them as any other character which would appear in normal text. Here is an example to demonstrate the current behaviour:

abc def
^L
ghi jkl

In org-mode, with point at the beginning or the end of the first or last line, doing ‘org-fill-paragraph’ (M-q) should do nothing, because the lines are already shorter than the fill-column. What really happens is that I end up with one line which looks like:

abc def ^L def ghi

In text-mode, ‘fill-paragraph’ does handle ^L characters correctly, and pressing M-q anywhere in the first example results in no change being made to the buffer.

Emacs : GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.17.6)
of 2022-08-27
Package: Org mode version 9.5.4 (release_9.5.4-19-g4dff42 @ /home/matt/Code/emacs/lisp/org/)

Reply via email to