Bug 152240

Summary: tabStops should not change with the BeforeText
Product: LibreOffice Reporter: TorrAB
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: dgp-mail, heiko.tietze, mikekaganski, rb.henschel, vmiklos
Priority: medium    
Version: 7.4.3.2 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=150848
https://bugs.documentfoundation.org/show_bug.cgi?id=76005
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: file with tabStops

Description TorrAB 2022-11-26 16:37:43 UTC
Description:
tabA.odt. BeforeText=0.25 in; tabStop @1.0. Format>Paragraph>Tabs; change BeforeText to 0.5, click OK; tabStop changes to 1.25. Add tabStop @ 2.0; it appears 2.0 in from the leftMargin. Since tabStops are defined with-respect-to the leftMargin (which seems logical), why did the 1st tabStop change with the BeforeText?

Steps to Reproduce:
1.open tabA.odt
2.change BeforeText to 0.5
3.

Actual Results:
tabStop changes to 1.25

Expected Results:
tabStop (defined with-respect-to the leftMargin) should not change


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 4; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-CA (en_CA); UI: en-US
Calc: CL
Comment 1 TorrAB 2022-11-26 18:04:31 UTC
Created attachment 183822 [details]
file with tabStops
Comment 2 Dieter 2022-12-04 16:55:41 UTC
(In reply to TorrAB from comment #0)
> Since tabStops are defined
> with-respect-to the leftMargin (which seems logical), why did the 1st
> tabStop change with the BeforeText?

But if they are defined to text indent (which is also logical for me), it's the expected behaviour and not a bug.

Perhaps, help is not helpful in this case: https://help.libreoffice.org/7.4/en-GB/text/shared/guide/tabs.html?&DbPAR=WRITER&System=WIN

Heiko, I'm sure, you know the answer.
cc: Heiko Tietze
Comment 3 TorrAB 2022-12-05 13:54:39 UTC
(In reply to Dieter from comment #2)
> (In reply to TorrAB from comment #0)
> > Since tabStops are defined
> > with-respect-to the leftMargin (which seems logical), why did the 1st
> > tabStop change with the BeforeText?
> 
> But if they are defined to text indent (which is also logical for me), it's
> the expected behaviour and not a bug.

But the 2nd tabStop, defined at 2.0 in, appears 2.0 in from the leftMargin, not 2.0 in from the indent.
Try to add a 3rd tabStop.
Comment 4 Dieter 2022-12-05 15:35:43 UTC
(In reply to TorrAB from comment #3)
> But the 2nd tabStop, defined at 2.0 in, appears 2.0 in from the leftMargin,
> not 2.0 in from the indent.

You're right, sorry. Tab position is measured from text margin. But I still won't assess current behaviur a bug, because it retains current layout in a better way than if tab doesn't move. But again, let's wait for Heiko's opinion.
Comment 5 Heiko Tietze 2022-12-07 10:53:59 UTC
The tab stop position seems to be somehow bound to the indentation. In the example 2.56cm tab stop and 0.64cm indentation - changing the indentation affects the tab stop.

We decided in bug 150848 to accept the convenience feature that no tabstop makes a tab as wide as the indentation is defined. This might be somehow related.

Miklos, Mike: Any idea here?
Comment 6 Miklos Vajna 2022-12-07 12:22:06 UTC
This is a Writer vs Word difference, see https://bz.apache.org/ooo/show_bug.cgi?id=24363. Tabs are positioned relative to the left indent in Writer but not in Word.

If you want to change this, probably you can change what is the value of the compat flag for new documents.
Comment 7 Regina Henschel 2023-08-07 20:35:56 UTC
In ODF 1.4 there will be a new attribute for the default paragraph style instead of the TabsRelativeToIndent setting.

The problem of tab stops being relative to right edge of paragraph margin was earlier reported in but 82234. So this is likely duplicate.

The request for having a UI for the setting is in bug 76005.
Comment 8 Dieter 2023-10-29 20:24:05 UTC
(In reply to Regina Henschel from comment #7)
> The problem of tab stops being relative to right edge of paragraph margin
> was earlier reported in but 82234. So this is likely duplicate.

So let's mark it as duplicate. TorrAB, feel free to change it back wirh a shorts reasoning, if you disagree

*** This bug has been marked as a duplicate of bug 82234 ***