Is there a way to find an empty paragraph between two tables?

Hello all,
I want to change the “Default Paragraph Style” for another style in the empty paragraphs* (that exist between, and before and after tables).
Does anyone knows how to find them all?

I tested with ^$, ^, and $ [and $^].
Thanks in advance.

File to test with:
empty between tables.odt (8.5 KB)

image
* With red in the screenshot, screenshot edited.

EDIT: Tested with LibreOffice 25.2.7.2 and 25.8.2.2.

There is a slightly related bug report, but it’s about empty paragraphs in a table (tdf#138781).

i don’t think you can do it with standard F&R. You can find empty paragraphs with ^$ but there is no “descriptor”/keyword for a table. And anyway the scope of standard F&R is limited to one paragraph. Since tables are “objects” they are external to your intermediate paragraphs and can’t be matched even if there were a keyword for the tables (because they live outside the paragraph).

I’m not looking for tables, just empty paragraphs (that exist between tables).
I reworded parts of my question to clarify.

Strange: I used ^$ to find empty paragraphs and it does not work here. LO 25.8.3.2.

If I add any character (single-character paragraph), ^.$ works but ^.?$ does not find the empties.

1 Like

I think @ajlittoz is right, and I’m afraid also AltSearch has no means for the task.
You will need user code.
See this example:
disask_130129_TableFellowStyle.odt (55.4 KB)
which may serve as a surrogate for a real solution.
The above attached example contained a logical error in the macro. Use
disask_130129_TableFellowStyleFixed.odt (55.7 KB)

1 Like