Right margin not being respected with right tab stop after addition of certain text

I am working with Libreoffice 24.8.2.1 on a Windows 11 machine.

I have a style (called key style) which has one right tab stop at 6.93" with … as fill. All works as appropriate. I am using the zotero plugin and when I add an intext citation which contain certain characters, the right tab stop appears to change and the right margin is not respected. If I undo, the text that I added goes away but the right tab stop does not go back to the way it was. In the past I was having a similar problem when I simply added certain characters but I can’t reproduce that problem. I know this is confusing to understand, but please ask questions. I am trying to explain the situation as best I can.

I am attaching the document (untitled 6) here showing what it looks like when things are acting correctly.
Untitled 6.odt (11.2 KB)

And the document (untitled 6 problem) after I had inserted the intext citation via the zotero plugin. This shows how things get messed up.
Untitled 6 problem.odt (12.7 KB)

There is a second tab just before the space of apple. So, in the problem file, this new tab don’t jump to the new line.
imagen
I activated to view the formatting marks, and changed the page style to horizontal, so the next default tab stop (near 193 mm) is visible.

In the Inspector I see one difference.
imagen
In the problem file, the value is 0, but I don’t know the meaning of Writing Mode here. And the paragraph text direction is set to Left-to-right (LTR).

I added that second tab for a couple of reasons. One is to show the dramatic difference between the two files. Note that even “banana” moves further right in the problem file. The other reason I added the second tab is that sometimes I use two tabs to force the end of the line to move to next line.

I will also add that if on the problem file I select all > copy > open a new blank file > paste into that document the new document looks like it had originally with the addition of the inline text that had been added. See attached. That is the only way I have been able to find to get back to a file without this issue.
Untitled 6 problem fixed.odt (11.8 KB)

I don’t understand how you get your “good” and bad result.

There is a flaw in the “good” document: there are two Tabs between “fruit red” and “apple”. Your tab stop (key style) is beyond the printable area, in the right margin. Consequently, the cursor goes as far as it can and stops at right margin. Then the second tab is handled, causing a line break (because no text can go inside the margin with the indents configuration in the style) and “apple” is then flushed as far as it can.

The double tab is faulty.

But then, layout is different in the “bad” document: since the addition is in the last paragraph, there should not be any retroaction in the first one. Here, the first tab pushes to in-margin stop and the second tab pushes text to the next “implicit” evenly spaced stop (every 1/2" apart). This tab is left-aligned.

The paragraph with “banana” is also weird because the off-margin tab is also honoured.

From .fodt analysis, Zotero added direct formatting on the citation paragraph modifying a parameter style:text-position="0% 100%" which is translated as Char Escapement and Char Escapement Height in the Style Inspector.

Thanks ajlittoz.
I hope I am not making my example more complicated by adding that extra tab. The extra tab in the good document before the word apple is intentional and does what I want. It provides for the apple to wrap to the next line and the “…” shows on the first and second line.

But even ignoring that extra tab there is still a problem in that after I added the inline citation from the zotero connector, the word “banana” shifts further right.

Why in the “bad” document is the additional tab now in the last paragraph?

I agree there is something going on regarding direct formatting coming into play. But even if in the “problem” document I select all and then clear direct formatting nothing changes.

Presently, defining a tab stop outside the area defined by paragraph indents is nonsense. If it is located at left of left indent, it can never be reached. When it is located at right of right indent, it can’t be reached either because text wrap occurs at right indent. I can’t explain the behaviour in the “problem” document. The fact that copy-pasting in a blank document fixes (part of) the behaviour shows that something is wrong in the document. What? I have no idea.

What do you mean by paragraph indents? I have just one tab stop this defined at 6.93", which should be right at the end of the paragraph.

Page styles define margins which describe the rectangular area inside which everything is laid out (main text, header, footer). Except under very specific circumstances, margins are no-print area (contrary to Word).

Paragraph styles can define additional “white” space at left and right which add up to margins, thus reducing locally the width of the print area. But indent space is not a no-print area, which allows for hanging alinea for example.

In your case, your document is Letter with 2cm margins, leaving 17.59 cm print width. Your tab stop is effectively defined at 17.6 cm (which is the same as the print width), but you probably moved the stop in the ruler with the mouse. The stop is now at 18.11 cm, which is inside the right margin.

Beware of direct formatting! It looks innocent but always plays nasty tricks on your back when you expect the least.

I didn’t move the stop with in the ruler with the mouse. At least I didn’t mean to if I did. It seems that in my situation for some reason the text is going beyond the page styles margins.

There still seems to be a bug but I think I am starting to see some of what is going on.

I had the tab stop within the style set to the far right end of the margin or even beyond the right margin on purpose. Because, what would happen is that the text that came after the tab would not get pushed further to the right then the right margin and would become right justified right at the right margin. See how this happens to the text apple and banana in the good document. This is what I was looking to make happen.

But something happens when I add certain inline citations from the Zotero connector. And then text starts extending to the right of the right margin. And even an undo doesn’t fix the situation. This used to not happen. It started happening a few months ago with a new release of Libreoffice.

Is there some other way I can accomplish what I want (i.e. have the text be both left justified at the beginning of the paragraph and right justified at the end, with “…” between the two? It gets even trickier for my larger document which has numerous other styles that are indented from the left.

See attached for what I am trying to do. And as I mentioned it all works perfectly until I add something that makes it do weird things.
Untitled 11.odt (13.5 KB)