Bug 65950 - FILESAVE: extra un-wanted new line added when saving as doc
Summary: FILESAVE: extra un-wanted new line added when saving as doc
Status: CLOSED DUPLICATE of bug 64989
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.4.2 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords: regression
Depends on:
Blocks:
 
Reported: 2013-06-20 02:10 UTC by Kevin Suo
Modified: 2013-06-21 04:19 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
the doc file which shows un-wanted new line was added in the header. (9.00 KB, application/wps-office.doc)
2013-06-20 02:10 UTC, Kevin Suo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Suo 2013-06-20 02:10:36 UTC
Created attachment 81086 [details]
the doc file which shows un-wanted new line was added in the header.

Problem description: 
For a .doc file with header, extra un-wanted new line is added each time I edit and save.

Steps to reproduce:
1. Create a new .doc file with libreoffice writer;
2. add some header text, save the file;
3. open the file again, you'll see a new line was added in the header;
4. edit and save the file again, another new line is added in the header...

This appears in LO 4.0.3 and 4.0.4 release. 
It's OK in LO 4.0.2.2 reldase
It's OK in odt and docx format.
Operating System: Ubuntu
Version: 4.0.4.2 rc
Comment 1 ign_christian 2013-06-20 15:14:50 UTC
Confirm reproducible on LO 4.0.4.2 (Win7 32bit)

This behavior happen if we insert fields by:
Menu: Insert > Fields > Date/Time/PageNumber etc

Not happen if we only insert texts on header.

> It's OK in LO 4.0.2.2 reldase
It's a regression ?
Comment 2 Kevin Suo 2013-06-21 01:42:59 UTC
> <mailto:ign_christian@yahoo.com>*Comment # 1
> <https://bugs.freedesktop.org/show_bug.cgi?id=65950#c1> on bug 65950
> <https://bugs.freedesktop.org/show_bug.cgi?id=65950> from
> ign_christian <mailto:ign_christian@yahoo.com> *
> Confirm reproducible on LO 4.0.4.2 (Win7 32bit)
>
> This behavior happen if we insert fields by:
> Menu: Insert > Fields > Date/Time/PageNumber etc
>
> Not happen if we only insert texts on header.

Based on your description, I also tested to insert fields into the *body
text*, and found the same un-wanted new line.
It's not happen if there are extra text following the inserted field.

So, this behaviour happen only if:
* Insert fields (date/time/pagenumber...) in a doc file; and
* The inserted field is the last char (i.e., no more extra text followed).
Comment 3 ign_christian 2013-06-21 02:48:23 UTC
> This behavior happen if we insert fields by:
> Menu: Insert > Fields > Date/Time/PageNumber etc
In my testing, that also happen on footer & body.

> So, this behaviour happen only if:
> * Insert fields (date/time/pagenumber...) in a doc file; and
> * The inserted field is the last char (i.e., no more extra text followed).
You're right. So workaround (from Bug 64989) is to add a blank space or character after field.

Probably this is duplicate of Bug 64989
Comment 4 Kevin Suo 2013-06-21 04:01:37 UTC
> Probably this is duplicate of Bug 64989

Thanks for your reminder. It really is.

*** This bug has been marked as a duplicate of bug 64989 ***