Bug 147834 - When 'next' style is different, clear DF numbering and bulleting
Summary: When 'next' style is different, clear DF numbering and bulleting
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.0 alpha0+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Clear-Formatting
  Show dependency treegraph
 
Reported: 2022-03-07 22:12 UTC by Eyal Rozenberg
Modified: 2023-09-27 04:11 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Document illustrating the issue (14.11 KB, application/vnd.oasis.opendocument.text)
2022-03-09 20:38 UTC, Eyal Rozenberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eyal Rozenberg 2022-03-07 22:12:36 UTC
Currently (i.e. LO 7.4 nightlies in early March 2022), if your paragraph is bulleted or numbered, and you press Enter, the next paragraph will always (?) also be bulleted or numbered, usually (?) continuing the list from the previous paragraph (with the exception of Heading-associated numbering perhaps).

However, when the Next Style is different than the current style, I believe the default should be to _not_ continue the bulleted or numbered list. It is much more likely that the user doesn't want the same list across different paragraph styles.
Comment 1 Eyal Rozenberg 2022-03-07 22:15:19 UTC
Perhaps I should qualify my opening comment... I think the next paragraph only currently inherits the current paragraph's bulleting/numbering if it's a list style that's not the one associated with the paragraph style. Otherwise the list style is reset/removed IIANM.
Comment 2 Heiko Tietze 2022-03-09 09:36:21 UTC
Please attach a sample document using paragraph styles that illustrates the issue. In fact different PS are attached to individual lists (see also the Styles Inspector). Please consider also what style follows to the current PS. If you are in a list you likely want to continue, so the next style is the list again.
Comment 3 Eyal Rozenberg 2022-03-09 20:38:10 UTC
Created attachment 178763 [details]
Document illustrating the issue

In the attached document, we have two numbered paragraphs, in CustomStyle1 and in CustomStyle2. The CustomStyle1 style isn't inherently numbered, it's just the specific paragraph that was explicitly numbered. They both have the Default Paragraph Style as their Next style.

When we press Enter at the end of the CustomStyle1 paragraph, the numbering continues;  when we press Enter at the end of the CustomStyle2 paragraph, the numbering does not continue.

I believe it makes much more sense for the numbering should be discontinued for the CustomStyle1 paragraph as well.
Comment 4 Eyal Rozenberg 2022-03-09 20:41:47 UTC
(In reply to Heiko Tietze from comment #2)
> If you are in a list you likely want to continue, so the next style is
> the list again.

This is true if your paragraph's style does not have a different style as its Next. When that is the case, you have indicated to LO your intent to _discontinue_ the semantic and stylistic sequence once you break for the next paragraph. For example: If a Heading is numbered, one would not assume the non-heading text after it should be numbered. And that's true whether all of the same-style headings are numbered, or just the one heading.
Comment 5 QA Administrators 2022-03-10 03:45:40 UTC Comment hidden (obsolete)
Comment 6 Heiko Tietze 2022-03-10 12:22:21 UTC
CustomStyle1 has no list style but you assign it manually, CustomStyle2 uses "Numbering 123". Both styles are followed by the Default PS (with no LS). 

Direct formatting is continued until it ends. For example, if you click bold and type the letters are bold. If you define a paragraph to be a list the next paragraph takes this DF. That's different to a list attribute at the PS.

List numbering continues at the next (or later) paragraphs unless you restart the numbering. Different LS have their individual numbering.

By using DF numbering for CustomStyle2 (meaning you click twice the "Toggle Ordered List F12" item in the toolbar, to first unset any list and second use the LS which comes with this command) you get the next number following what is used in the first section (list with CustomStyle1).

=> NAB
Comment 7 Eyal Rozenberg 2022-03-10 20:02:46 UTC
(In reply to Heiko Tietze from comment #6)
> Direct formatting is continued until it ends.

But it shouldn't, if the style changes.

> For example, if you click bold and type the letters are bold.

It is actually quite likely that you do _not_ want the emboldened part of, saying, a Heading 1, to continue into an emboldened Default Paragraph Text or Text Body etc. But with something like boldface, it's only quite likely, while with numbering and bulletting - it is essentially a certainty. I challenge you to find a valid use case to the contrary.

> If you define a paragraph to be a list the next paragraph takes this DF.

But the user doesn't want it to. Certainly for numbering, arguably for other DF.
Comment 8 Heiko Tietze 2022-03-11 07:32:57 UTC
The ticket boils down to the question how DF should be handled. Do you always want to format after input or keep the current formatting until it is changed. We decided to go with the second option: if you DF until the end of the paragraph this formatting will be kept.
Comment 9 Timur 2022-03-11 12:23:47 UTC
As explained, NAB.
Comment 10 Eyal Rozenberg 2022-03-11 16:29:30 UTC
(In reply to Heiko Tietze from comment #8)
> The ticket boils down to the question how DF should be handled. Do you 
> always want etc.

The whole point I'm making is that we're not talking about _always_ here, we're talking the niche case of styles with a different Next style. That's the case you have a contra-indication of your wanting DF to continue. Not the default case.
Comment 11 Dieter 2023-09-17 14:34:27 UTC
(In reply to Eyal Rozenberg from comment #10)
> The whole point I'm making is that we're not talking about _always_ here,
> we're talking the niche case of styles with a different Next style. That's
> the case you have a contra-indication of your wanting DF to continue. Not
> the default case.

As Heiko explained in comment 6 actual rule is: "If you DF until the end of the paragraph this formatting will be kept." You think it should be changed in the case of a style with different next style.

I also don't agree with this proposal, because it would lead to inconsistency and I'm sure, that somebody will report this as a bug and discussion would start again.

Heiko, is it possible to discuss this topic in a design meeting and come to a final decision?
Comment 12 Eyal Rozenberg 2023-09-17 17:14:01 UTC
(In reply to Dieter from comment #11)
> You think it should be changed
> in the case of a style with different next style.

I don't just think that as a personal preference. I claim it's what users _expect_, and it is what's useful to do.


> I also don't agree with this proposal, because it would lead to
> inconsistency and I'm sure, that somebody will report this as a bug and
> discussion would start again.

On the contrary, it would maintain consistency and increase coherence.

Consistency is maintained because when you press Enter and continue in the same style, DF remains in effect; but when you are editing a paragraph with a Next style, and the style changes, you are now writing a different part of your document. And you expect to now have the formatting appropriate for this new part of the document you're writing; while the DF is something you wanted to apply to the part you were working on before. So you expect the font to change, the spacing to change, the numbering/bulleting to change - already today. What do you expect them to change to? The non-DF settings of the Paragraph style you have now moved to. 

Coherence will be improved, since the way things are now, when a bunch of DF is carried along from the previous paragraph to a Next-PS, the formatting becomes a mess of irrelevant DF over the new PS.
Comment 13 Heiko Tietze 2023-09-18 08:48:35 UTC
(In reply to Dieter from comment #11)
> Heiko, is it possible to discuss this topic in a design meeting and come to
> a final decision?

Eyal's opinion is the opposite to our view and how it's implemented. As long his position don't get more support by users I see no need to change it.
Comment 14 Eyal Rozenberg 2023-09-18 09:01:12 UTC
(In reply to Heiko Tietze from comment #13)
> Eyal's opinion is the opposite to our view and how it's implemented. As long
> his position don't get more support by users I see no need to change it.

I challenge you (both) to provide a credible usage scenario in which the user would prefer, say, for numbering to continue when transitioning from Heading 1 to Default Paragraph Style or to Body Text.
Comment 15 Heiko Tietze 2023-09-27 04:11:21 UTC
Maybe you are right and continuing at a completely different PS should clear the DF.