https://bugs.documentfoundation.org/show_bug.cgi?id=146445
--- Comment #13 from Mike Kaganski <[email protected]> --- (In reply to Dieter from comment #12) > > and that implied for empty paragraphs to move when pressing enter > > in that empty paragraph. > > But why is this a necessary behaviour? It is not "necessary"; it is just how anchor to character is defined (the anchor is a special invisible "character" that is inserted *before* the anchored-to actual character); and that means, for empty character, 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. But it is of course possible to special-case it as much as wanted ... just some clear unambiguous and non-confusing specification of expected behavior is needed. > But I'm not a developer and I don't > have to understand in detail. I just can't imagine, that a user expects, > that new paragraphs are inserted above an image, if he presses enter in a > paragraph below that image. This is illogical. You are talking about the image being "above" paragraphs - and here you mix the anchoring with the orthogonal positioning; an image anchored to this character may be above or below, may have a fixed position on page, etc. This is not relevant to the discussion. -- You are receiving this mail because: You are the assignee for the bug.
