Bug 101713 - FORMATTING: Document rendered with extra newlines.
Summary: FORMATTING: Document rendered with extra newlines.
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.5.2 release
Hardware: x86 (IA32) Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-24 22:34 UTC by Gajdos Tamás
Modified: 2018-03-30 09:45 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
GY1.odt: The file with the problem, resaved in 5.1.5.2. (2.49 MB, application/vnd.oasis.opendocument.text)
2016-08-24 22:34 UTC, Gajdos Tamás
Details
Error.odt (10.90 KB, application/vnd.oasis.opendocument.text)
2016-08-24 22:35 UTC, Gajdos Tamás
Details
Error.pdf: Exported pdf (61.03 KB, application/force-download)
2016-08-24 22:36 UTC, Gajdos Tamás
Details
GY1.pdf: The original export to pdf. (5.98 MB, application/force-download)
2016-08-24 22:37 UTC, Gajdos Tamás
Details
GY1_2.odt: This is the original file, when switched a part to bold (2.49 MB, application/vnd.oasis.opendocument.text)
2016-08-24 22:38 UTC, Gajdos Tamás
Details
GY1_2.pdf: The export to pdf, when switched to bold. (2.64 MB, application/force-download)
2016-08-24 22:39 UTC, Gajdos Tamás
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gajdos Tamás 2016-08-24 22:34:07 UTC
Created attachment 127013 [details]
GY1.odt: The file with the problem, resaved in 5.1.5.2.

1. When opening an odt file in Writer at some characters (eg. d, l, m) a "newline" is inserted. This has some connection with formatting, as it usually occurs when the text is bold, or has some style (eg. Header 3). I attached 3 pdf and 2 odt files (sorry, they are in Hungarian).

2. This bad formatting also infects other opened documents.

How to reproduce:
 0.1. open the attached Error.odt
 0.2. select all text ( Ctrl +A ) and switch to Bold ( Ctrl + B )
 0.3. Notice that everything is ok.
 1.1. Don't close the file, just open the attached GY1.odt file.
 1.2. Switch back to Error.odt
 1.3. select all text ( Ctrl +A ) and switch to Bold ( Ctrl + B )
 1.4. notice that at some characters ( eg. de, lm) a newline is inserted.

Affected versions:
 - The GY1.odt file was originally created a year ago on Ubuntu Trusty amd64 + LO 5.0.something from ppa:libreoffice/libreoffice-5-0.
 - I haven't noticed this formatting problem on ubuntu trusty and xenial. I THINK.
 - I have noticed this behavior with 5.1.5.2 and 5.2.0.4 on Windows XP SP3.

I have included the exported pdf files also. Sorry about the text, it is not in english.
Comment 1 Gajdos Tamás 2016-08-24 22:35:04 UTC
Created attachment 127014 [details]
Error.odt
Comment 2 Gajdos Tamás 2016-08-24 22:36:01 UTC
Created attachment 127015 [details]
Error.pdf: Exported pdf
Comment 3 Gajdos Tamás 2016-08-24 22:37:12 UTC
Created attachment 127016 [details]
GY1.pdf: The original export to pdf.

This is the original file as it should look.
Comment 4 Gajdos Tamás 2016-08-24 22:38:29 UTC
Created attachment 127017 [details]
GY1_2.odt: This is the original file, when switched a part to bold
Comment 5 Gajdos Tamás 2016-08-24 22:39:19 UTC
Created attachment 127018 [details]
GY1_2.pdf: The export to pdf, when switched to bold.
Comment 6 Gajdos Tamás 2016-08-24 22:42:46 UTC
+ I also noticed the big file size, when I copy->paste the text to a new odt file it is around ~160 Kbytes.
Comment 7 Gajdos Tamás 2016-08-25 07:39:48 UTC
Tested on Kubuntu 16.04.1 + ppa:libreoffice/libreoffice-5-1 with version 1:5.1.4-0ubuntu1

The rendering and formatting is ok, and there is no "infection".
Comment 8 Aron Budea 2016-09-22 06:10:44 UTC
Üdv Tamás / Hi Tamás!
The file is big and extremely slow loading because it contains embedded fonts (bug 69060). I wonder if the embedded fonts are responsible for this weird behavior. Did you try if the behavior is the same with the copied, small document?

I could generally reproduce this with v5.1.5.2 & v5.2.1.2 / Windows XP. In Windows 7 the behavior is different, and somewhat less stable, there were times when the documents looked correct, other times just by opening both led to broken bold "Feladatok:" on 2nd page as "Fe / l / adatok:".
I guess that counts as confirmed.
Comment 9 Xisco Faulí 2017-09-29 08:54:06 UTC Comment hidden (obsolete)
Comment 10 Timur 2018-03-30 09:45:27 UTC
Strange bug. 
Since this is specific and you didn't retest and I repro in Win 7 with LO 5.1 but not with 6.0, I'll close. 
If you do repro with 6.0 please set back to New. 

We have another issue here that could be reported as another bug, but with backtrace: vcllo.dll dump on load of GY1.odt, also if saved in LO 6.1+.