Created attachment 179438 [details] Example file from Word 2013 Attached document contains a MergeButton field. This is imported correctly as a field in Writer (the built-in Word macros set in the field do not work though, which is a different issue). Saving the file as DOCX is breaking the field, which has less separator spaces than originally. Writer won't recognize it as field after reload while Word recognizes it as field, but does not work until the missing space is added. 1, Open attached file in Word, right click on the field and choose Edit Field. 2, Notice it is a MacroButton type field, with "Hello World" as Display text and "AllCaps" as Macro name (from the built-in Word macro library). 2, Open the file in Writer, save as DOCX and open that in Word 3, Now in Word right click on the field and choose Edit Field. 4, Word shows the field as "MACROBUTTONAllCaps Hello World" Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community Build ID: cf4d5ed026c8799a70432a832a8a707c2e316216 CPU threads: 14; OS: Windows 10.0 Build 19044; UI render: default; VCL: win Locale: en-US (hu_HU); UI: en-US Calc: threaded Jumbo Export behavior is the same back to 4.1, before it was even worse, this was not even exported as field.
Created attachment 179439 [details] The example file saved by Writer master
Created attachment 179440 [details] The original and exported files in Word 2013 in field codes view
Reproduced in Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: ab8d141967111ca81f4607db3618bb09214e42db CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3 Locale: es-ES (es_ES.UTF-8); UI: en-US Calc: threaded and Word 2016
Proposed fixed in https://gerrit.libreoffice.org/c/core/+/133077
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/c5d5c7e8c385f8a7e6ab824095e61aeeca4ab8c7 tdf#148494: export: Always add space separator It will be available in 7.4.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.
Xisco Fauli committed a patch related to this issue. It has been pushed to "libreoffice-7-3": https://git.libreoffice.org/core/commit/dfacd800395b95837a24a1f33267b46f96efd5de tdf#148494: export: Always add space separator It will be available in 7.3.4. 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.