Bug 170111 - When pressing Enter in the last paragraph where nothing but an image is anchored To Character, a new paragraph is inserted above instead of below
Summary: When pressing Enter in the last paragraph where nothing but an image is ancho...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2025-12-24 04:08 UTC by Danat
Modified: 2025-12-27 07:32 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Video (2.58 MB, video/mp4)
2025-12-24 04:09 UTC, Danat
Details
File in the video (7.18 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-12-24 04:09 UTC, Danat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Danat 2025-12-24 04:08:33 UTC
Description:
https://drive.google.com/drive/folders/1uphBQN8EMHAXW9uWh8r0zpM_dXqWO_9L?usp=sharing

Steps to Reproduce:
1.Put two images anchored as character
2.Press "enter" after the second one
3.

Actual Results:
An indent appears between them

Expected Results:
No indent


Reproducible: Always


User Profile Reset: No

Additional Info:
In the video
Comment 1 Danat 2025-12-24 04:09:09 UTC
Created attachment 204785 [details]
Video
Comment 2 Danat 2025-12-24 04:09:33 UTC
Created attachment 204786 [details]
File in the video
Comment 3 Buovjaga 2025-12-25 13:30:17 UTC
It does not perform a self-indentation. The image is anchored as character within the last paragraph. When you press Enter, it inserts a new paragraph above. However, the behaviour is different, when you have text in the paragraph in addition to the image. I'm not sure, if this difference in behaviour is intentional. We should ask about it to be sure.

This is already observed in the oldest of linux-43all bibisect repository.
Comment 4 Danat 2025-12-25 13:54:41 UTC
(In reply to Buovjaga from comment #3)
> It does not perform a self-indentation. The image is anchored as character
> within the last paragraph. When you press Enter, it inserts a new paragraph
> above. However, the behaviour is different, when you have text in the
> paragraph in addition to the image. I'm not sure, if this difference in
> behaviour is intentional. We should ask about it to be sure.
> 
> This is already observed in the oldest of linux-43all bibisect repository.

You're right, this isn't an indent, but not a big difference

I don't like it, I don't find it to be useful
Comment 5 Buovjaga 2025-12-25 20:34:29 UTC
Got some feedback in dev chat suspecting this is accidental and should be fixed.
Comment 6 LeroyG 2025-12-26 20:08:45 UTC
For me: Not a bug.

The second image in the sample document is anchored To Character (a character in the last paragraph).

(In reply to Danat from comment #0)
> 2.Press "enter" after the second one

I'm not sure, but it seems that you can't:
The last paragraph always will be the last one. So, you are adding a new paragraph before the last one, and the image is anchored to the last one (and remains anchored there).

There is no issue if the second image is anchored "As Character" (as stated in the bug title).

You can see the end of paragraph symbol in its proper place if the image width is reduced a bit.

Tested with:
Version: 24.8.7.2 (X86_64) / LibreOffice Community
Build ID: 480(Build:2)
CPU threads: 4; OS: Linux 6.4; UI render: default; VCL: gtk3
Locale: es-MX (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 7 Buovjaga 2025-12-26 20:14:47 UTC
Right, sorry for not checking the anchor type properly :(
Comment 8 Danat 2025-12-27 07:32:02 UTC
(In reply to LeroyG from comment #6)
> For me: Not a bug.
> 
> The second image in the sample document is anchored To Character (a
> character in the last paragraph).
> 
> (In reply to Danat from comment #0)
> > 2.Press "enter" after the second one
> 
> I'm not sure, but it seems that you can't:
> The last paragraph always will be the last one. So, you are adding a new
> paragraph before the last one, and the image is anchored to the last one
> (and remains anchored there).
> 
> There is no issue if the second image is anchored "As Character" (as stated
> in the bug title).
> 
> You can see the end of paragraph symbol in its proper place if the image
> width is reduced a bit.
> 
> Tested with:
> Version: 24.8.7.2 (X86_64) / LibreOffice Community
> Build ID: 480(Build:2)
> CPU threads: 4; OS: Linux 6.4; UI render: default; VCL: gtk3
> Locale: es-MX (en_US.UTF-8); UI: en-US
> Calc: threaded

Perhaps. Who am I to say if people benefit from it. Thank you