Bug 159794 - Zero 'before text' indent first before removing paragraph break
Summary: Zero 'before text' indent first before removing paragraph break
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paragraph-Indent
  Show dependency treegraph
 
Reported: 2024-02-20 13:11 UTC by lvm
Modified: 2024-03-18 07:41 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Example (10.54 KB, application/vnd.oasis.opendocument.text)
2024-03-08 11:09 UTC, Heiko Tietze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lvm 2024-02-20 13:11:31 UTC
Consider the following scenario:

* create two paragraphs of text with visually different styles e.g. a heading followed by default
* set non-zero first line indent for the second paragraph (format-paragraph-indents&spacing)
* position cursor at the beginning of  the second paragraph
* press backspace

The result is that the first line indent is removed. Now repeat, but instead of 'first line' indent apply 'before text' indent. The result is wildly different - the second paragraph is appended to the first assuming its style. I find this behaviour inconsistent, both 'first line' and 'before text' indents should be treated the same way. I prefer the first line approach - if all indents are sequentially removed, but the main point is consistency. This is especially confusing for one-line paragraphs when you just can't tell without a ruler what kind of indent it is and don't know how it will react to backspace.
Comment 1 Dieter 2024-03-08 10:53:06 UTC
I confirm it with

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ab95ed2c4b1eddc2188bd455653a77140aa3816c
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

But I think, that also the "Before Text" behaviour makes sense. So let's ask design-team for decision about expected result.

Pressing backspace is a direct formatting of paragraph. That is something I wouldn't expect.
Comment 2 Heiko Tietze 2024-03-08 11:08:55 UTC
Admittedly inconsistent but likely a convenience feature coming from the list behavior. If you want to remove the list numbering you just need to press backspace at the paragraph start. Second backspace removes the previous paragraph break.

OTOH I see no good reason to do so for ordinary paragraphs and could imagine this to be an unwanted fallout from the list handling. What do you think, Mike?
Comment 3 Heiko Tietze 2024-03-08 11:09:06 UTC
Created attachment 193028 [details]
Example
Comment 4 Mike Kaganski 2024-03-08 11:19:02 UTC
(In reply to Heiko Tietze from comment #2)

I suppose it is not a fallout from list behavior, but rather a separate "convenience feature" to please Word users. I would be glad to drop it, but anticipate a pushback...
Comment 5 lvm 2024-03-08 11:43:37 UTC
Actually in Word's numbered list backspace promotes the numbering and when no more numbering is left starts removing indents; paragraph break is removed only when nothing more is left to remove. Personally I think the Word way is more efficient as it lets one remove outdent without diving deep into formatting dialogues. Essentially it treats indents as tab characters.
Comment 6 Heiko Tietze 2024-03-11 11:11:20 UTC
(In reply to lvm from comment #5)
> Essentially treat (any) indent as tab characters
+1 from my side

It means the indentation before text is zeroed on backspace similar to the first line indent. Any objection?
Comment 7 Dieter 2024-03-11 20:56:47 UTC
(In reply to Heiko Tietze from comment #6)
> Any objection?
OK for me.