Bug Hunting Session
Bug 40787 - FILEOPEN:Libreoffice shows text that is hidden in Word, that hides superfluous Tabs and Enters at the end of the line/paragraph - see comment #13
Summary: FILEOPEN:Libreoffice shows text that is hidden in Word, that hides superfluou...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: interoperabillity
Keywords:
: 61125 (view as bug list)
Depends on:
Blocks: Paragraph-Tab-Stops DOC-Paragraph
  Show dependency treegraph
 
Reported: 2011-09-11 09:35 UTC by Jaxson Lee
Modified: 2019-10-08 07:59 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
Original .doc files and PDF samples from Libreoffice and Word 2002 (30.88 KB, application/zip)
2011-09-11 09:35 UTC, Jaxson Lee
Details
test document tes document with various examples (28.00 KB, application/msword)
2013-12-16 10:44 UTC, Cor Nouws
Details
test document - compare MS Word 2010 and LO Writer 4.3.6 (109.04 KB, image/jpeg)
2015-04-08 11:06 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaxson Lee 2011-09-11 09:35:57 UTC
Created attachment 51053 [details]
Original .doc files and PDF samples from Libreoffice and Word 2002

Writer has added some unwanted text (three extra page number fields to be exact) to the footer of the attached FooterA.doc document (.doc is Word 97-2003 format).

I've attached how the document shows in MS Word 2002 (Office XP), where the extra page numbers don't appear, and how it looks in Writer 3.4.3 where there are three extra '2' characters on each page.

For a test, I changed some stuff around in the footer in Writer, saved it as FooterB.doc and opened that in Word 2002. The extra page number fields still don't show in Word, but also the text I added next to these in Libreoffice is also not shown in Word.
Comment 1 Björn Michaelsen 2011-12-23 12:41:10 UTC Comment hidden (obsolete)
Comment 2 sasha.libreoffice 2012-02-02 07:59:26 UTC
reproduced in LibO 3.3.4, 3.4.3, 3.5.0 beta and 3.6.0 master
on Fedora 64 bit and Windows XP 32 bit

But with file FooterA is another problem: beginning with 3.5.0 document contains 6 pages instead of 2 and pages are very strange. Therefore *regression*
Comment 3 sasha.libreoffice 2012-02-02 08:01:07 UTC Comment hidden (obsolete)
Comment 4 Cor Nouws 2012-02-03 15:58:46 UTC Comment hidden (obsolete)
Comment 5 sasha.libreoffice 2012-02-04 04:54:47 UTC Comment hidden (obsolete)
Comment 6 Cor Nouws 2012-02-05 12:15:09 UTC
Yes, sorry, I realised too late the file was there too ;-)

I opened the FooterA.doc and B in Word 2010.
With some effort, you can see that there is some mal-formed content.
A line with some fields at the end, hidden because Word allows (there?) to move content out of the margin, out of the view.
LibreOffice shows that, so indeed is not compatible here. I doubt if we want to be / can be.

When I create a new file with Footer and pagefield in Word, there is no problem opening it in LibreOffice.
So special case here
Comment 7 Cor Nouws 2012-02-06 03:14:31 UTC
(In reply to comment #2)

> But with file FooterA is another problem: beginning with 3.5.0 document
> contains 6 pages instead of 2 and pages are very strange. 

I can reproduce that.
WOuld be better to have a separate issue for this (one issue, one problem)
Comment 8 Roman Eisele 2012-03-02 01:58:07 UTC
(In reply to comment #6)
> I opened the FooterA.doc and B in Word 2010.
> With some effort, you can see that there is some mal-formed content.
> A line with some fields at the end, hidden because Word allows (there?) to move
> content out of the margin, out of the view.
> LibreOffice shows that, so indeed is not compatible here. I doubt if we want to
> be / can be.

I have to agree. Instead of just speaking of a bug, we need to clarify first if we really want LibreOffice to mimic MS Office in every respect, even when it does such strange stuff like moving contents out of view into an invisible margin area (something which a mentally normal user will only do by accident, like obviously in the sample document). At least, we should not “hide” such out-of-the-margin text in any case, but add/use a compatibility option ...

IIRC, there was a similar question about Word moving text into the margin some time ago, but I can’t find it for now … Can someone else find it?
Comment 9 Cor Nouws 2012-11-05 16:04:15 UTC
Just adding a note:
saw a Word document with superfluous Enters in the footer.
Which are all resulting in extra paragraphs when opened in LibreOffice..
Comment 10 Joel Madero 2013-02-12 16:47:35 UTC
3.5 is at the end of life so we are closing the most annoying meta bug.

I can confirm on Version 4.1.0.0.alpha0+ (Build ID: 80cbc04c2cbe25ebdfe2f22bb2e5ba62728e963) Bodhi Linux

I am not going to move this to 3.6 MAB because it isn't affecting many people at all (seen by the lack of other comments outside of QA and Developers). 

This is a minor issue also as you can easily just delete the extra stuff in the bottom right (a bit annoying for a workaround but it works).
Comment 11 Brenda Granados 2013-03-01 15:34:21 UTC
*** Bug 61125 has been marked as a duplicate of this bug. ***
Comment 12 Cor Nouws 2013-12-16 10:40:52 UTC
making this to a more general interop-issue..
Comment 13 Cor Nouws 2013-12-16 10:44:54 UTC
Created attachment 90834 [details]
test document tes document with various examples

test document with various examples where tabs are shown at end of line/character in Writer and not in Word

Only when there is a tab setting at the right margin and the alignment of that tab is left, the superfluous tab characters are not shown
Comment 14 Cor Nouws 2013-12-16 10:47:43 UTC Comment hidden (obsolete)
Comment 15 Adam CloudOn 2013-12-16 11:46:22 UTC Comment hidden (obsolete)
Comment 16 Timur 2015-04-08 11:06:01 UTC
Created attachment 114688 [details]
test document - compare MS Word 2010 and LO Writer 4.3.6

One of those "file displayed incorrectly" bugs which are rarely solved because each problem should've been reported separately. I add Bug 83309 to See Also.
Comment 17 QA Administrators 2018-01-13 03:29:57 UTC Comment hidden (obsolete)
Comment 18 Frederic Parrenin 2018-01-15 16:10:31 UTC
I confirm this bug is still present in 5.4.4.
Comment 19 QA Administrators 2019-10-08 02:28:27 UTC Comment hidden (obsolete)
Comment 20 Frederic Parrenin 2019-10-08 07:56:12 UTC
I confirm this bug is still present in 6.3.3.
Comment 21 Frederic Parrenin 2019-10-08 07:59:28 UTC
I meant 6.3.2.