Created attachment 202140 [details] marginLeftRight.docx: containing both image and shapes with 2cm margins When a floating object is aligned to the "left" of the page/paragraph, then it should hug that left position, and not have a "text wrap" gap. At least that is how MS Word lays it out (which makes sense). LibreOffice calls it a "margin" and always applies it. So during import, just force the margin to zero. (This is what has already been done since OOo, but not all cases were handled.) Cases already handled: -pictures: FRAME (paragraph) and PAGE_PRINT_AREA (page margin) -shapes: PAGE_PRINT_AREA (left only) PRINT_AREA (paragraph margin) became an exposed issue with 24.8 commit eacf8dc7ab850f2d00bd4b327f830c55cf2a0d92 Author: Justin Luth on Tue Mar 5 19:22:34 2024 -0500 tdf#160049 dml import: use margins with left/right HoriOrientRelation Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164443
Created attachment 202141 [details] marginLeftRight.pdf: how it looks in Word 2010 and LO 25.8.0
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/7adcf969978eb8e5fb218ce42d707539843bebf6 tdf#167770 writerfilter: zero out margin if left/right aligned It will be available in 26.2.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.
Justin Luth committed a patch related to this issue. It has been pushed to "libreoffice-25-8": https://git.libreoffice.org/core/commit/c716de571f2f1abc7b27170729a2107a1f87e533 tdf#167770 writerfilter: zero out margin if left/right aligned It will be available in 25.8.1. 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.
Justin Luth committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/188fc004c3e1448ed68b6e1a96932886da04bc82 related tdf#167770 docx import/export: support INSIDE/OUTSIDE It will be available in 26.2.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.