Description: Hi, I have a .docx file with some references added with EndNote reference manager software. When I open the file with LibreOffice Writer and re-save it without any modification, the reference fields are damaged and cannot be used in MS Word and EndNote anymore. But in one free office software named WPS Office, there is no such problem. This is problematic when I want to work with other team's members. I was wondering if you would fix this academic issue. Sincerely, Mohammadreza Actual Results: I have a MS Word file with some fields created by EndNote reference manager software from my professor. When I open the file in LibreOffice Writer, after saving the file to a new file, the fields are no longer compatible with MS Word. Expected Results: The fields are damaged and an MS Office user cannot use the fields anymore. The Word says that: "the field codes have been removed". Reproducible: Always User Profile Reset: Yes Additional Info: Like WPS Office, I expect that LibreOffice Writer becomes more compatible with MS Office and saving the file without any changing, doesn't affect the reference fields.
Thank you for reporting the bug. Please attach a sample docx-file, as this makes it easier for us to verify the bug. I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided. (Please note that the attachment will be public, remove any sensitive information before attaching it)
Created attachment 173210 [details] MS Word file with EndNote fields (as references)
Hi, Thank you so much for your follow up. Best, Mohammadreza
Steps for trying to reproduce: 1. Open attachment 173210 [details] in Writer 2. Save as docx 3. Reopen in MS Word (I use Word 2016) and compare with original document opened in writer Regarding to steps in comment 0 I would expect a problem, but both documents look the same. So i can't confirm the bug report Version: 7.1.4.2 (x64) / LibreOffice Community Build ID: a529a4fab45b75fefc5b6226684193eb000654f6 CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win Locale: de-DE (de_DE); UI: en-GB Calc: CL Mohammadreza, if my steps are wrong, please describe steps to reproduce as detailed and as short as possible: 1. ... 2. ... 3. ... It might also be useful to add a screenshot to make it more clear what "damaged" means.
Created attachment 173252 [details] 1.MSWord_original
Created attachment 173253 [details] 1.MSWord_savedByLibreWriter
Created attachment 173254 [details] 2.MSWord_original
Created attachment 173255 [details] 2.MSWord_savedByLibreWriter
Hi and thank you so much. If you right click on the reference [1] in the MS Word and select "Toggle Field Codes", you can see the field codes. Then Open this file in LibreOffice Writer and just save it without any change. Again open the file in MS Word and check the field codes. Although it is still field codes, EndNote cannot detect it. I attached four screenshots. First, compare these two: 1.MSWord_original.png 1.MSWord_savedByLibreWriter.png You can see that EndNote cannot detect the reference after saving by Libre Writer. Then, compare these two: 2.MSWord_original.png 2.MSWord_savedByLibreWriter.png Now, the field codes are not the same and that's why EndNote hasn't detect it. I found that a space after { is omitted by LibreOffice Writer. Adding a simple space after the first character { manually, can fix the issue and EndNote software detects it as a field. I tried it and it worked. {ADDIN EN.CITE { ADDIN EN.CITE This workaround does not work for multiple references [1, 2] and this needs another way. Hope these explanations help. Please let me know if i can be of any help. I look forward to your solution. Best, Mohammadreza
Thank you for screenshots and additional informations. I assume, that you need EndNote as extension in Word and in LO (for example I can't see "Edit Citation" in my context menu in word. Since I use Zotero, I can't help.
If LO Writer doesn't change the original field codes, there will be no problem. I was wondering if you could figure out why the field codes are changed by LO. This can solve the problem.
Hello Mohammadreza, a new major release of LibreOffice is available since this bug was reported. Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ? I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
EndNote is commercial software, available via trial, so hardly will someone get it to test, but there is another way. Codes seem to be written in : <w:fldData xml:space="preserve"> and it's lost on LO save.
(In reply to Dieter from comment #12) > Hello Mohammadreza, a new major release of LibreOffice is available since > this bug was reported. Could you please try to reproduce it with the latest > version of LibreOffice from > https://www.libreoffice.org/download/libreoffice-fresh/ ? > I have set the bug's status to 'NEEDINFO'. Please change it back to > 'UNCONFIRMED' if the bug is still present in the latest version. Hi, Sorry for my delayed reply. I have just installed the latest version, 7.4.2, and the issue exists.
*** Bug 142771 has been marked as a duplicate of this bug. ***
Timus confirmed problem in comment 13, so we can change status to NEW
Still repro in Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 69d0be09ad81935f7da4b6f8d036c3562357d068 CPU threads: 16; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: ru-RU (ru_RU); UI: ru-RU Calc: CL threaded