Bug 137822 - LAYOUT DOCX: Text boxes with parallel wrap have inline tables slip underneath them (bad), while optimal wrap does not (workaround)
Summary: LAYOUT DOCX: Text boxes with parallel wrap have inline tables slip underneath...
Status: RESOLVED DUPLICATE of bug 76022
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
4.4 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2020-10-28 13:53 UTC by jake.weilhammer
Modified: 2023-06-09 16:42 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Original Docx File (283.61 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-10-28 13:55 UTC, jake.weilhammer
Details
Expected Results on Word (169.39 KB, image/png)
2020-10-28 13:55 UTC, jake.weilhammer
Details
Wrapping issue on LibreOffice (156.33 KB, image/png)
2020-10-28 13:56 UTC, jake.weilhammer
Details
Text Box Wrapping Settings on Word (541.39 KB, image/png)
2020-10-28 13:57 UTC, jake.weilhammer
Details
simplify reproducer (51.75 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2020-11-12 12:40 UTC, Xisco Faulí
Details
Comparison LibreOffice 7.1 master and MSO 2010 (77.98 KB, image/png)
2020-11-12 12:41 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jake.weilhammer 2020-10-28 13:53:50 UTC
Description:
Some text boxes on Microsoft word files are formatted incorrectly due to the Wrap setting on them (default seems to be Page Wrap).  This is causing the text boxes to have incorrect formatting and is moving them over other object/text on the document.

I'm able to manually fix this issue by selecting the text boxes and changing the wrapping style to "Optimal Page Wrap", but applying this indiscriminately to the whole document causes most pages to go blank and sometimes crashes LibreOffice.

At a large scale, we won't be able to tell which text boxes actually need this new wrapping style, and which ones it would format even worse.  Libre should be able to handle the correct wrapping style from the word document.

Steps to Reproduce:
1. Open included file with LibreOffice.  Or Copy/Paste text boxes included on original file (docx) above block of text.  Not exactly sure how the text boxes were made on this file, but they seem to be causing issues.  I have attached the wrapping settings on another screenshot (text_box_wrapping_settings.png)

2. Upon opening file with LibreOffice the formatting for the text boxes is off and they are moved around/over other text on the page

Actual Results:
Text boxes are wrapping incorrectly around/over other text and objects on the document.

Expected Results:
Text box stays formatted how it was in the docx.  This can be accomplished by changing the wrap settings on LibreOffice to Optimal Page Wrapping for the text box.


Reproducible: Always


User Profile Reset: No



Additional Info:
Libre should have chosen the correct wrapping settings based on the microsoft word file. Be it Optimal Page Wrapping or some other setting.
Comment 1 jake.weilhammer 2020-10-28 13:55:03 UTC
Created attachment 166802 [details]
Original Docx File
Comment 2 jake.weilhammer 2020-10-28 13:55:47 UTC
Created attachment 166803 [details]
Expected Results on Word
Comment 3 jake.weilhammer 2020-10-28 13:56:10 UTC
Created attachment 166804 [details]
Wrapping issue on LibreOffice
Comment 4 jake.weilhammer 2020-10-28 13:57:02 UTC
Created attachment 166805 [details]
Text Box Wrapping Settings on Word
Comment 5 Xisco Faulí 2020-11-12 12:40:43 UTC
Created attachment 167237 [details]
simplify reproducer
Comment 6 Xisco Faulí 2020-11-12 12:41:52 UTC
Created attachment 167238 [details]
Comparison LibreOffice 7.1 master and  MSO 2010
Comment 7 Xisco Faulí 2020-11-12 12:42:12 UTC
Reproduced in

Version: 7.1.0.0.alpha1+
Build ID: 03cafc2ab6b1678f82e9a30b6f81e505660ee702
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 8 Xisco Faulí 2020-11-12 12:44:20 UTC
also reproduced in

Version: 5.2.0.0.alpha1+
Build ID: 5b168b3fa568e48e795234dc5fa454bf24c9805e
CPU Threads: 4; OS Version: Linux 4.8; UI Render: default; 
Locale: ca-ES (ca_ES.UTF-8)

and

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e

@NISZ Team, I thought you might be interested in this issue
Comment 9 Xisco Faulí 2020-11-12 13:08:20 UTC
Actually the document ( at least the minimized ) has 2 problems, the problem with the blue shapes has been reported in bug 138162
Comment 10 NISZ LibreOffice Team 2020-11-13 08:30:18 UTC
Note: shape+table wrap problem is already known as bug #76022 and bug #115625 - this is likely a duplicate.
Comment 11 QA Administrators 2022-11-14 03:32:01 UTC Comment hidden (obsolete, spam)
Comment 12 Justin L 2023-03-15 14:52:32 UTC Comment hidden (no-value)
Comment 13 Justin L 2023-06-02 16:23:14 UTC
(In reply to NISZ LibreOffice Team from comment #10)
> Note: shape+table wrap problem is already known as bug #76022 
Agree.

*** This bug has been marked as a duplicate of bug 76022 ***
Comment 14 Justin L 2023-06-06 18:21:41 UTC
The wrap on the textboxes themselves is fine, and always seems to have been. I tested 5.2 and already then they were parallel wrap (called page wrap previously). In MSO 2010, they are "square" "both sides" - i.e. parallel no contour.

There are special rules for optimal wrap and these do affect tables, so that is why OP's workaround is effective, even if it isn't accurate.

Something similar is seen with regular text wrapping on both side in very little space with parallel, and no wrapping whatsoever with optimal wrap. Since there is a minimal example in this report that doesn't show this, I created a separate bug report for that - bug 155711.

So far my contributions to this bug have been terrible. Hopefully I've covered my bases this time... I'm focusing on original_file.docx (minimized) from comment 5.

These are not floating tables, so the work done in 7.6 for that is irrelevant here.

Since the minimized document focuses on tables slipping underneath wrapping flies, I'll again mark this as a duplicate.

*** This bug has been marked as a duplicate of bug 76022 ***