Bug 103148 - No adoption of heading numbers when inserting a pagebreak before a heading
Summary: No adoption of heading numbers when inserting a pagebreak before a heading
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Styles-Heading Writer-Page-Break
  Show dependency treegraph
 
Reported: 2016-10-12 11:01 UTC by Frank Brütting
Modified: 2023-05-05 03:24 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
103148_canceledNumbering.odt: sample to reproduce reported bug. (11.82 KB, application/vnd.oasis.opendocument.text)
2021-05-04 07:10 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Brütting 2016-10-12 11:01:39 UTC
Description:
I activated heading numbers, but when the cursor is at the start of a heading and I press Ctrl+Enter, I get the same heading style (of the yet empty paragraph), but with no number in front of it. I need to restyle the heading (Ctrl+1) for the number to appear.

With pressing Enter instead of Ctrl+Enter, it works as expected.

Steps to Reproduce:
1. Activate heading numbers
2. Write text and press Ctrl+1 etc.
3. Set the cursor at the beginnig of the numbered heading and insert a pagebreak

Actual Results:  
New empty line hast the appropriate heading style, but with no number in front of it.

Expected Results:
New empty line should have the appropriate number in front of it.


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
Comment 1 Regina Henschel 2016-10-12 14:01:06 UTC
I can confirm this behavior with Version: 5.3.0.0.alpha0+
Build ID: e2f6c7f0d0cc14f851d7028ff846c5dc658a81c6
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2016-10-10_23:08:02
Locale: de-DE (de_DE); Calc: group

In addition, if the cursor is in front of the outline number, insert page break does not work at all.

I see this behavior already in Version: 4.2.5.2
Build ID: 6ff819b65674ae6c83f3cbab9e4a4c2b292a7a94

I set it to NEW. But I do not know, whether this behavior is an intended change from Apache OpenOffice to LibreOffice.
Comment 2 Timur 2017-07-20 15:07:41 UTC Comment hidden (obsolete)
Comment 3 Regina Henschel 2017-07-20 18:35:34 UTC
(In reply to Timur from comment #2)
> @zyklon87: Please explain how you "Activate heading numbers". 
> Because I don't have this with Tools-Outline Numbering.

Make a text with paragraphs in style "Text body" and headings in style "Heading 1". Go to menu Tools > Chapter Numbering (former Outline Numbering). Go to tab "Numbering". Mark "1" in list "Level". Make sure "Heading 1" is chosen in drop-down-list "Paragraph style". Select item "A, B, C" from drop-down-list "Number". OK
Now your heading should be numbered with A, B, C.
 
> @Regina: Please explain why that behavior is a bug.
When you use "Ctrl+Enter" a paragraph is inserted, which has the same paragraph style as the paragraph has, where the cursor stood, when you have inserted the page break. In this case, the new paragraph gets the paragraph style "Heading 1". And because this paragraph style is assigned to outline level 1 numbering, it should get a number.

If you save the faulty document, you can see, that the new paragraph has got a wrong paragraph style. It should have got a reference to "Heading 1". But it has got a reference to a new automatic style and this automatic style has erroneously got an attribute style:list-style-name="", which prevents numbering.
Comment 4 QA Administrators 2018-07-21 02:39:19 UTC Comment hidden (obsolete)
Comment 5 Frank Brütting 2018-07-21 12:37:38 UTC
Still persists in:

Version: 6.0.5.2
Build-ID: 54c8cbb85f300ac59db32fe8a675ff7683cd5a16
CPU-Threads: 8; BS: Linux 4.17; UI-Render: Standard; VCL: gtk3; 
Flatpak version
Gebietsschema: de-DE (de_DE.UTF-8); Calc: group
Comment 6 Regina Henschel 2018-07-21 17:29:32 UTC
Faulty too in Version: 6.2.0.0.alpha0+ (x64)
Build ID: 3e39524d4171f0ecadad5658d6e03cf44126b2a0
CPU threads: 8; OS: Windows 10.0; UI render: GL; 
Locale: en-US (en_US); Calc: CL
Comment 7 QA Administrators 2019-07-22 02:44:36 UTC Comment hidden (obsolete)
Comment 8 sdc.blanco 2021-03-25 12:38:08 UTC
(In reply to Regina Henschel from comment #3)
> When you use "Ctrl+Enter" a paragraph is inserted, which has the same
> paragraph style as the paragraph has, where the cursor stood, when you have
Cannot reproduce.

1. New document.
2. Tools > Chapter Numbering (assign ABC numbering scheme to Heading 1)
3. Enter text with Text Body ps.
4. Enter text with Heading 1 ps.
5. Press Ctrl+Enter  (with cursor at *END* of Heading 1 ps)

Actual and Expected Result:  the PS on the new page is Text Body with no outline level.

6. Press Ctrl+Enter (with cursor at *beginning* of text in Heading 1, as in comment 0)

Actual:  text (with Heading 1) moved to new page.
Expected:  ??

7. Press Ctrl+Enter (with cursor *on list label* - if that is what "in front of the outline number in comment 1 means?)

Actual:  Empty "Heading 1" is added, followed by paragraph with cursor (i.e., on same page)
Expected: ?? 


Or is the OP possibly NAB?  As I read comment 0. 

"Expected: New empty line should have the appropriate number in front of it"

If "Next style" in "Heading 1" was changed to "Heading 1" , then next paragraph would be Heading 1 after Ctrl+Enter (at the end of the Heading), and appropriate number appears.

All tests with: 
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 6e4238018bf0408f2961e5708212e09a8c3597dc
Comment 9 Justin L 2021-05-04 07:10:09 UTC
Created attachment 171625 [details]
103148_canceledNumbering.odt: sample to reproduce reported bug.

repro 7.2+
Also repro with bibisect43all with LO 3.5.
Comment 10 Justin L 2021-05-04 07:15:35 UTC
If I JUST have a heading 1 style on an empty paragraph, then a Ctrl-Enter creates a "Text Body" style on the second page. The first page has a Heading 1 style, with no numbering. (Text Body makes sense to me - I am both at the beginning AND end in this case, so next style is Text.)

In the normal case where there is some text in the heading, the new page has a numbered Heading style, but again the first page has a Heading style without any numbering.
Comment 11 QA Administrators 2023-05-05 03:24:24 UTC
Dear Frank Brütting,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug