[Libreoffice-ux-advise] [Bug 120469] Object anchored to paragraph doesn't move if an enter is inserted at the beginning of the paragraph

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Nov 28 07:27:55 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=120469

--- Comment #4 from Mike Kaganski <mikekaganski at hotmail.com> ---
(In reply to Heiko Tietze from comment #3)
> Adding paragraphs above moves the object, so effectively the anchor is set
> to the end of the previous paragraph.

As far as I know, there is no "adding paragraphs above" function in writer's
normal text. When your cursor is inside a paragraph, it's *inside* the
paragraph; its position is "M leading paragraph characters to the left of the
cursor; N trailing paragraph characters to the right of the cursor". The M and
N vary, and M might be 0, but the principle doesn't change. And when the cursor
is at 3rd character, and Enter is pressed, no one would be surprised that the
image anchored to the paragraph stays with the first two characters that stay
where they were.

As I said in comment 1, special-casing of position 0 makes sense - because it
might be intuitive; or because it's currently no means to move images anchored
to very first paragraphs without re-anchoring. But the implementation needs
discussing. I see the following options:

1. Make only the very first position in the document special: because for other
places in the document, you always can insert paragraphs before this one by
putting cursor at the end of the previous paragraph.

2. Make any paragraph's start special (may possibly create other inconveniences
for users not expecting that, but I cannot invent a case at the moment).

3. Introduce an "Insert paragraph above this" special function, using
Alt+Enter, *consistent with behaviour in the beginning of a table*. IMO that
would introduce consistency and avoid special-casing.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list