Bug 118711 - DOC(X): Copy-pasting bulleted list entries insert page break
Summary: DOC(X): Copy-pasting bulleted list entries insert page break
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:
Keywords:
: 32344 125456 (view as bug list)
Depends on:
Blocks: Paste DOCX-Bullet-Number-Outline-Lists DOC-Bullet-Number-Lists
  Show dependency treegraph
 
Reported: 2018-07-12 01:39 UTC by Aron Budea
Modified: 2020-07-09 10:07 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample ODT (8.43 KB, application/vnd.oasis.opendocument.text)
2018-07-12 01:39 UTC, Aron Budea
Details
Sample DOCX (saved from ODT in Writer) (4.91 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2018-07-12 01:40 UTC, Aron Budea
Details
Sample DOC (saved from ODT in Writer) (10.00 KB, application/msword)
2018-07-12 01:40 UTC, Aron Budea
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aron Budea 2018-07-12 01:39:21 UTC
Created attachment 143494 [details]
Sample ODT

Attaching a document with three bulleted lines (ODT original + DOC & DOCX saved from it in Writer).

- Copy the first two entries.
- Paste them at the beginning of the third entry.

=> With DOC(X) this inserts a page break before the pasted lines. With ODT no page break is inserted (as expected).

Observed using LO 6.1.0.1 & 3.3.0 / Windows 7.
Comment 1 Aron Budea 2018-07-12 01:40:07 UTC
Created attachment 143495 [details]
Sample DOCX (saved from ODT in Writer)
Comment 2 Aron Budea 2018-07-12 01:40:36 UTC
Created attachment 143496 [details]
Sample DOC (saved from ODT in Writer)
Comment 3 Dieter 2018-07-12 07:45:42 UTC
I confirm the described behaviour, but I wouldn't expect a page break, so for me it's not a bug.
Comment 4 Aron Budea 2018-07-12 09:41:13 UTC
(In reply to Dieter Praas from comment #3)
> I confirm the described behaviour, but I wouldn't expect a page break, so
> for me it's not a bug.
That's what I meant, I consider the behavior with ODT correct, and the one with DOC(X) incorrect.
Comment 5 Dieter 2018-07-12 10:07:21 UTC
(In reply to Aron Budea from comment #4)
> (In reply to Dieter Praas from comment #3)
> > I confirm the described behaviour, but I wouldn't expect a page break, so
> > for me it's not a bug.
> That's what I meant, I consider the behavior with ODT correct, and the one
> with DOC(X) incorrect.

=> NEW
Comment 6 Aron Budea 2019-03-11 23:12:52 UTC
Simpler repro case:
- open an empty DOCX,
- add a line break,
- copy both empty lines to the clipboard,
- paste them into the second line.

=> A page break is inserted between the two.

There are lots of possible repro cases, this is just the simplest of them.
Comment 7 Gabor Kelemen 2019-05-23 08:31:47 UTC
*** Bug 125456 has been marked as a duplicate of this bug. ***
Comment 8 László Németh 2019-05-23 08:39:20 UTC
Note: DOCX import always sets a master page, that is why the first paragraph of an imported document contains a page break=before setting. (It's equivalent of applying a page style in a new ODT document.)
Comment 9 Justin L 2020-04-23 19:33:40 UTC
This was fixed for a regular paragraph with https://cgit.freedesktop.org/libreoffice/core/commit/?id=b0facbbedf42a02449d9f35bb4ac8bd7ec2d8917

I'm sure I saw a duplicate bug report about this for tables too, so whoever works on this should try to make it generic without causing any regressions. :-)
Comment 10 Justin L 2020-04-24 06:57:41 UTC
*** Bug 32344 has been marked as a duplicate of this bug. ***
Comment 11 NISZ LibreOffice Team 2020-07-09 10:07:22 UTC
(In reply to Justin L from comment #9)
> This was fixed for a regular paragraph with
> https://cgit.freedesktop.org/libreoffice/core/commit/
> ?id=b0facbbedf42a02449d9f35bb4ac8bd7ec2d8917
> 
> I'm sure I saw a duplicate bug report about this for tables too, so whoever
> works on this should try to make it generic without causing any regressions.
> :-)

I can still reproduce the originally reported problem with a newly saved docx-version of attachment #143494 [details]

Version: 7.1.0.0.alpha0+ (x64)
Build ID: 5483d4e10aad27889b961b9cb94d7ba6c86aed0b
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL

Turning off manually for the first paragraph the Text Flow - Breaks - Insert box makes the copy-pasting work as expected.