https://bugs.documentfoundation.org/show_bug.cgi?id=146445
Dieter <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |libreoffice-ux-advise@lists | |.freedesktop.org Keywords|bibisectRequest, regression |needsUXEval Severity|normal |enhancement Summary|Anchor of image moves to |Change behaviour of anchor |next paragraph when type |to character in an empty |Enter key at original |paragraph (see comment 15) |(empty) paragraph | --- Comment #15 from Dieter <[email protected]> --- (In reply to Mike Kaganski from comment #13) > and that means, for empty paragraph, that the > inserted anchor is *before* ... what? it's before the paragraph end, which > serves the anchoring point in this case. So when you put a cursor into an > empty paragraph, it is *after* paragraph start, and *before* paragraph end; > when you press Enter, you logically insert a "paragraph end - paragraph > start" pair in the place where your cursor is, moving the existing old > paragraph end to the following new paragraph; and since that moved paragraph > end is the anchoring point, the anchored object moves accordingly. Thank you for your detailed explanation. Just let me rephrase, what I understand and let me explain, why I still see inconsistency here and a need for an enhancement: After inserting an image in an empty document, we have empty paragraph below document and order within this paragraph is: paragraph start | anchor | paragraph end After placing cursor in that empty paragraph we have: paragraph start | cursor | anchor | paragraph end Scenario A: press enter => paragraph break between paragraph start and anchor => New empty paragraph before image (so this is, what you explained as expected behaviour and I can understand it now and therefore I won't consider the current behaviour a bug) Scenario B: Press spacebar (or any character) (Order within paragraph is: paragraph start | character (with connected anchor to character) | cursor | paragraph end) Press Enter => New paragraph after the old paragraph and anchor to character is still part of the old paragraph (Expected) So I think we can reduce problem to the question: To what should we anchor an anchor to character, if there is no character inside a) paragraph start => with cursor we have order: paragraph start | anchor | cursor | paragraph end (I would prefer this solution) b) paragraph end => with cursor we have order: paragraph start | cursor | anchor | paragraph end (current behaviour) c) Not possible to have anchor to character in an empty paragraph So let me give some resons for solution a) 1. Consisteny I: If we have anchor to (an empty) paragraph order seems to be: paragraph start | cursor | anchor (to paragraph) | paragraph end 2. Consistency II: Similar behaviour in an empty paragraph and in a paragraph after inserting a character. 3. User expectations: If there is an image with an empty paragraph below and user presses enter we can assume, that he would like to insert a new paragraph below the empty paragraph and not above the image (this is at least what he sees as a result). So I would see it as enhancement, I've changed bug summary and added design-team for additional input. -- You are receiving this mail because: You are on the CC list for the bug.
