Bug 98923 - LO Writer incorrectly reformats field codes from Word docx documents
Summary: LO Writer incorrectly reformats field codes from Word docx documents
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Fields
  Show dependency treegraph
 
Reported: 2016-03-27 17:23 UTC by brian.bj.parker99
Modified: 2019-04-02 22:53 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
docx file showing bug in field processing in Writer (292.11 KB, application/zip)
2016-03-27 17:23 UTC, brian.bj.parker99
Details

Note You need to log in before you can comment on or make changes to this bug.
Description brian.bj.parker99 2016-03-27 17:23:24 UTC
Created attachment 123890 [details]
docx file showing bug in field processing in Writer

When LO Writer loads Word docx files, the field codes are subtly reformated by removing spaces, which causes major problems with, for example, collaborators using Endnote bibliographic software as Endnote will no longer recognise the reformatted field codes, effectively destroying all citations in the document.

The attached example docx file “Test_bad_endnote_field_orig.docx” was created Word document with and inserted citation field using Endnote software.  
The attached screen shot “Screenshot_word_orig” shows this document in Word with the “show field code” option on.

The attached docx file “Test_bad_endnote_field_saved_from_lo.docx” was created by loading Test_bad_endnote_field_orig.docx in LO and saving it as a docx file.
The attached screen shot “Screenshot_word_after_saving_from_lo” shows this docx file loaded in Word with the “show field code” option on.

You can see how LO incorrectly removes the single space around the field code “ADDIN EN.CITE”.

Although apparently a minor bug it is of major impact as it prevents round trip editing of Word documents with collaborators who use Endnote software to manage references.

(A related bug is that the menu option View | Field Names in LO has no effect which makes it harder to identify this bug in LO as the files otherwise look identical if field codes are not displayed).

LibreOffice Version: 5.1.1.3  on OSX.
Comment 1 Phil Krylov 2019-04-02 22:53:30 UTC
Reproducible in:

Version: 6.3.0.0.alpha0+
Build ID: 0bc06d22a8bfb41e11a6abc17f6a0d449246d8a3
CPU threads: 4; OS: Mac OS X 10.13.6; UI render: default; VCL: osx; 
Locale: en-US (en_RU.UTF-8); UI-Language: en-US
Calc: threaded