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

Tex2002ans <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Tex2002ans+LibreOffice@gmai
                   |                            |l.com
         Resolution|NOTABUG                     |---
     Ever confirmed|0                           |1
             Status|RESOLVED                    |NEW

--- Comment #8 from Tex2002ans <[email protected]> ---
It seems like Comment #0 didn't describe it as well as it could have been.

I was able to reproduce it using Attachment #202420 (my simplified document)
using this version:

Version: 25.2.5.2 (X86_64) / LibreOffice Community
Build ID: 03d19516eb2e1dd5d4ccd751a0d6f35f35e08022
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 22631); UI render:
Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

with more discussion/details at the OP's original bug here:

-
https://www.reddit.com/r/libreoffice/comments/1meu615/writer_deleting_empty_lines_without_deleting/n6hhp7a/

- - - - - -

### An "empty" Heading Numbering bug (Regular Expression Find and Replace
issue)

In Writer:

0. Open the attached ODT.

1. Edit > Find and Replace (Ctrl+H)

2. At the bottom of the window:

- Expand "Other Options".

3. Turn ON the "Regular Expressions" checkbox.

4. Type:

- Find: ^$
- Replace:
--- Leave it COMPLETELY BLANK

5. Press "Replace All".

BUG: All those paragraphs with auto-generated chapter names disappear:

Before:

- Chapter 1 Test 1
- Chapter 2
- Chapter 3
- [...]
- Chapter 10

After:

- Chapter 1 Test 1

EXPECTED: For the auto-generated headings to not be deleted:

- Chapter 1 Test 1
- Chapter 2
- Chapter 3
- [...]
- Chapter 10

- - - - - -

### Why Were We Doing This?

We were trying to remove all double "ENTER ENTERs" from the book, but it
accidentally wiped away all the numbered chapter headings as well.

### Note On How I Produced The ODT

1. Press ENTER 5 times.

2. Ctrl+A to highlight all 5 paragraphs.

3. Ctrl+1 to change them all the "Heading 1" Style.

4. Tools > Heading Numbering.

5. In the "Heading Numbering" window:

- Go to the "Numbering" tab.

then change each of these:

- "Number" dropdown:
--- 1, 2, 3, ...
- "Before" box:
--- Chapter 
----- Make sure there's a SPACE after the word "Chapter " <----!!!
- "After" box:
--- :
----- A single COLON.

6. Press OK.

Now, you get those "empty" automatic chapter numberings.

This was mostly following the official LibreOffice Help instructions:

- LibreOffice 25.2 Help: "Inserting a Chapter Name and Number in a Header or a
Footer"
-
https://help.libreoffice.org/25.2/en-US/text/swriter/guide/header_with_chapter.html

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

Reply via email to