Description: I have found some Word documents to not render some content in LibreOffice Writer. I narrowed it down to nested runs within a text box. The structure like this does not render the text: wps:txbx -> w:txbxContent -> w:p -> w:r -> w:r -> w:t -> #text Steps to Reproduce: Not sure how the documents are initially created but I was able to reproduce doing the follow: 1. Create a new empty document 2. Insert a text box 3. Add some text to the text box 4. Save as Word 2010-365 Document 5. Extract the docx file and edit word/document.xml 6. Find the "<w:r>" wrapping the text you entered and wrap it in another "<w:r>" Actual Results: Reopening the modified document in LibreOffice Writer does not render the text. Opening the modified document in Word does. Expected Results: The text is rendered as it is rendered in Word. Reproducible: Always User Profile Reset: No Additional Info: Version: 25.2.3.2 (X86_64) / LibreOffice Community Build ID: bbb074479178df812d175f709636b368952c2ce3 CPU threads: 16; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Vulkan; VCL: win Locale: en-US (en_US); UI: en-US Calc: CL threaded
Created attachment 200903 [details] File which does not render properly
Bisected with linux-43max author Miklos Vajna <vmiklos@collabora.co.uk> 2013-12-03 11:59:42 +0100 commit 57450afb768c085df0ba2344aa94b5f843060178 DOCX import: declare wps as a supported feature This means in case we hit an mc:AlternateContent element, we will read the mc:Choice branch of it, in case wps is the required feature, not the mc:Fallback one, which contains the information in VML format (after a lossy conversion).
Oh fun, this was found 12 years later... I'll try to see what's doable here.
Miklos Vajna committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/a414d7d884bc49f6d4028ad2fcf4186998a5a67e tdf#166680 DOCX import: handle nested <w:r> runs It will be available in 25.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.
Miklos Vajna committed a patch related to this issue. It has been pushed to "libreoffice-25-2": https://git.libreoffice.org/core/commit/0bed7ae342f28dcdfe51a31ddbbc0c1148d59c33 tdf#166680 DOCX import: handle nested <w:r> runs It will be available in 25.2.5. 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.