Bug 98507 - Formatting: Character format 'spills' forward to next line in MS .doc format on fileload of Microsoft
Summary: Formatting: Character format 'spills' forward to next line in MS .doc format ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-07 19:05 UTC by Doug
Modified: 2019-12-10 17:45 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
DOC for testing (9.00 KB, application/msword)
2016-03-13 20:00 UTC, Buovjaga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Doug 2016-03-07 19:05:18 UTC
Using 

The character format at the end of a line is the character format of the next character regarded as the first character of the next line. Typing at the end uses the wrong format, that from the first character of the next line.

To reproduce make a document with two lines of text and apply a direct character format effect (not using character template). Use any of italics, bold, and/or underline on the first one (or more) characters of the second line. Use either the menu format->text->whatever or the buttons on the formatting toolbar. Leave the first line of text entirely plain, no applied character format.

Save as temp.doc and reload (or else close and open). Move cursor to end of the first line and see the 'projected' character format. Type at the end of the first line to see the wrong character format applied to added text.

Save a similar two-line document as temp.ODT and otherwise repeat to see that the problem does NOT exist with the .odt file extension (which I would normally use but MS .doc is the format for uploading an Amazon ebook manuscript).

I am using Funtoo Linux on a Sony Vaio laptop. I don't know what OSs and hardware platforms are effected. I tentatively put 'All'. Thx.
Comment 1 Doug 2016-03-08 04:25:02 UTC
I have just compiled and tested Writer for LibreOffice 5.0.5.2 and get the same bug. I have also discovered a potential workaround, though I worry about file corruption.

WORKAROUND-ISH: If I type a non-space character at the end of the offending line and then undo with ctrl-z, the bad character format setting is corrected.
Comment 2 Buovjaga 2016-03-13 20:00:00 UTC
Reproduced.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.2.0.0.alpha0+
Build ID: 235411c9d47ecba88e46d859ea93bcecefb0c46e
CPU Threads: 8; OS Version: Linux 4.4; UI Render: default; 
Locale: fi-FI (fi_FI.UTF-8)
Built on March 11th 2016
Comment 3 Buovjaga 2016-03-13 20:00:21 UTC
Created attachment 123544 [details]
DOC for testing
Comment 4 QA Administrators 2017-05-22 13:19:55 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2019-12-03 14:58:58 UTC Comment hidden (obsolete)
Comment 6 Doug 2019-12-10 17:45:36 UTC
As instructed, I tested for the bug on the current LibreOffice I have on my Linux. The bug is gone. LibreOffice is now working as expected. The LibreOffice version I tested for this comment is:

Version: 6.1.5.2
Build ID: 1:6.1.5-3+deb10u4
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk2; 
Locale: en-US (en_US.UTF-8); Calc: group threaded

Thanks for great software!