Bug 158972

Summary: Adding ruby to an content control text, and saving as DOCX, produces invalid file
Product: LibreOffice Reporter: Mike Kaganski <mikekaganski>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: aron.budea
Priority: medium    
Version: 7.6.4.1 release   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=158971
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 104448, 113363    
Attachments: A simple content control

Description Mike Kaganski 2024-01-02 11:23:26 UTC
Created attachment 191694 [details]
A simple content control

1. Make sure that under Options->Language Settings->Languages, [x] Asian checkbox is ticked.
2. Open the attachment in Writer; put cursor into the "text" field (content control), and add a ruby (Asian Phonetic Guide in Format menu) - type some text in the dialog's "Ruby text" box.
3. Save as DOCX.
4. Reload.

=> SAXException: [word/document.xml line 2]: Opening and ending tag mismatch: sdtContent line 2 and rubyBase

Version: 7.6.4.1 (X86_64) / LibreOffice Community
Build ID: e19e193f88cd6c0525a17fb7a176ed8e6a3e2aa1
CPU threads: 24; OS: Windows 10.0 Build 22631; UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (en_US); UI: en-US
Calc: CL threaded
Comment 1 Aron Budea 2024-01-03 02:30:25 UTC
Confirmed using LO 24.2.0.1.0+ (2d02bb6c792350b7bc07b029f835bd0223402079) / Ubuntu.