Created attachment 192248 [details] Three bookmarks, meeting in one position The attached document has a single word "foo" and three bookmarks: "bookmark1" spans over "foo"; "bookmark2" is between "foo" and "bar"; and "bookmark3" spans over "bar". Save it as (F)ODT, and inspect the XML. The content of the paragraph becomes <text:bookmark-start text:name="bookmark1"/>foo<text:bookmark-start text:name="bookmark3"/><text:bookmark-end text:name="bookmark1"/><text:bookmark text:name="bookmark2"/>bar<text:bookmark-end text:name="bookmark3"/> i.e., between "foo" and "bar", first "bookmark3" starts; then "bookmark1" ends; and then "bookmark2" appears. I.e., "Bookmark1" and "bookmark3" interleave; "bookmark2" gets inside "bookmark3". This is basically re-appearance of #i58438#, happened after commit 76a4305d1e90b6617054dd33036e64f005dbcf04 (sw: fix inconsistent bookmark behavior -around at-char/as-char anchored frames, 2017-12-21).
Mike Kaganski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/1d7ce421480d9170316533de03feb8d04eb5c767 tdf#159438: when there's no frame, close previous bookmark first It will be available in 24.8.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Mike Kaganski committed a patch related to this issue. It has been pushed to "libreoffice-24-2": https://git.libreoffice.org/core/commit/3af133c23544839bcad6592c910e5f04e8f85c38 tdf#159438: when there's no frame, close previous bookmark first It will be available in 24.2.2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.