https://bugs.documentfoundation.org/show_bug.cgi?id=167999

            Bug ID: 167999
           Summary: Writer, EDITING: Deleting empty paragraphs using "Find
                    and Replace" also deletes auto-generated chapter
                    headers
           Product: LibreOffice
           Version: 24.8.5.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
My document consists of two paragraph styles:
- Heading (H1), which I created myself using "Tools - Heading Numbering -
Numbering". The headings are fully auto-generated and do not contain plain
text. They are in the style of "Chapter 1", "Chapter 2", etc. I created them
like this:
https://help.libreoffice.org/latest/en-US/text/swriter/guide/header_with_chapter.html
- Body text which I pasted into the document using "Paste Unformatted Text".
It's some paragraphs of plain text seperated by true empty paragraphs
("Formatting Marks" shows pilcrows, not line breaks).

Problem: The pasted text contains empty paragraphs which I wanted to delete
using "Find and Replace". Regular Expressions turned on, Find: "^$", Replace
with: [BLANK]. This found all empty paragraphs, but also my auto-generated
chapter headings as they don't have any plain text. Deleting the empty
paragraphs would therefore also delete the auto-generated chapter headings.

Workaround: Instead of using only fully automated chapter headings I could add
some text manually to each auto-generated heading, but this defeats the purpose
of auto-generating the headings in the first place...

Steps to Reproduce:
1. Create chapter headings via "Tools - Heading Numbering - Numbering". (Select
the numbering scheme 1, 2, 3, ...; Begin with: 1; Paragraph style: Heading 1;
Before: "Chapter ")
2. Create a few paragraphs using the return key.
3. Select those paragraphs and change them to "Heading 1" style. This should
create fields called Chapter 1, Chapter 2, etc.
4. Use "Find and Replace", Regular Expressions turned on, Find: "^$", Replace
with: [BLANK].

Actual Results:
This deletes the auto-generated headings.

Expected Results:
The auto-generated headings shouldn't be deleted.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
I first encountered this bug using an older version (the one I mentioned
above).

Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 19045); UI render:
Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to