Bug 66267 - Writer adds a line break after comment when closing/reloading doc file
Summary: Writer adds a line break after comment when closing/reloading doc file
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.3.3 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-27 17:41 UTC by Daniel
Modified: 2015-04-19 01:01 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
This is the odt version - what the doc file looked like before reopening. (9.40 KB, application/vnd.oasis.opendocument.text)
2013-06-27 17:41 UTC, Daniel
Details
This is the doc version - including the line break. (9.00 KB, application/msword)
2013-06-27 17:41 UTC, Daniel
Details
The odt version with two different places for comments (9.59 KB, application/vnd.oasis.opendocument.text)
2013-07-08 08:55 UTC, Daniel
Details
The doc version with two different places for comments (9.00 KB, application/msword)
2013-07-08 08:56 UTC, Daniel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2013-06-27 17:41:08 UTC
Created attachment 81572 [details]
This is the odt version - what the doc file looked like before reopening.

In writer, open a .doc or .docx document (whether created in LibO or Microsoft Office) and insert a comment. Save, close and reopen the document. Writer has added a line break immediately after the comment.
This problem recurs whenever closing & opening the document, so it accumulates line breaks.
Comment 1 Daniel 2013-06-27 17:41:52 UTC
Created attachment 81573 [details]
This is the doc version - including the line break.
Comment 2 Owen Genat (retired) 2013-06-28 00:34:53 UTC
Setting status to NEW, platform to ALL, and version to 4.0.3.3 release. I have tested this under Crunchbang 11 running TDF/LO v4.0.3.3 (Build ID: 0eaa50a932c8f2199a615e1eb30f7ac74279539) using the files provided and with newly created files.

The second text:span element in the first text:p element (line1) appears to be transformed into a separate (empty) line, when saving to the DOC file format. This does not occur if saving to the DOCX format. 

The related AskLO thread is:

http://ask.libreoffice.org/en/question/19600/writer-adds-line-breaks-after-comment-in-doc-file/
Comment 3 Daniel 2013-07-08 08:55:05 UTC
There is a twist: The bug I reported above only occurs if comments are placed at the end of a line/paragraph. Comments in the middle of a paragraph do not force a line break upon closing/reloading.
Comment 4 Daniel 2013-07-08 08:55:51 UTC
Created attachment 82172 [details]
The odt version with two different places for comments
Comment 5 Daniel 2013-07-08 08:56:24 UTC
Created attachment 82174 [details]
The doc version with two different places for comments
Comment 6 Gordo 2015-04-19 01:01:04 UTC
Created doc and docx documents and added comment.  Saved, closed, and reopened.  No line break added.
Opened doc documents attached and added comment.  Saved, closed, and reopened.  No line break added.

Windows Vista 64
Version: 4.4.2.2
Build ID: c4c7d32d0d49397cad38d62472b0bc8acff48dd6

Changed to RESOLVED WORKSFORME.