Bug 132763 - Page break before enters new page, even if it's the first item
Summary: Page break before enters new page, even if it's the first item
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:
Depends on:
Blocks: Writer-Tables
  Show dependency treegraph
 
Reported: 2020-05-06 12:34 UTC by Telesto
Modified: 2022-08-05 03:31 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (9.19 KB, application/vnd.oasis.opendocument.text)
2020-05-08 10:28 UTC, Telesto
Details
Proper example file (9.68 KB, application/vnd.oasis.opendocument.text)
2020-05-08 10:28 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-05-06 12:34:23 UTC
Description:
Page break before enters new page, even if it's the first item

Steps to Reproduce:
1. Open Writer
2. CTRL+Enter
3. Insert a table
4. Cut the table
5. Paste the table -> Extra page is added because of page break before

Actual Results:
Extra page

Expected Results:
Able to detect being on empty page?


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.0.0.0.alpha0+ (x64)
Build ID: 97a2c1fc5e376c0c00968f17a0392c6d3a5ed565
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win; 
Locale: nl-NL (nl_NL); UI-Language: en-US
Calc:
Comment 1 Timur 2020-05-07 11:46:43 UTC
I don't think LO supports AI at the moment, so my take is WontFix.
But let's call UX.
Comment 2 Heiko Tietze 2020-05-08 09:32:49 UTC
To cut a table means that you add a character before, otherwise only the content is taken. And cutting the page break adds it back when pasting, of course.

I don't see an issue.
Comment 3 Telesto 2020-05-08 10:13:25 UTC
(In reply to Heiko Tietze from comment #2)
> To cut a table means that you add a character before, otherwise only the
> content is taken. And cutting the page break adds it back when pasting, of
> course.

Behavior has changed... cut actually deletes/removes the table. No character before needed anymore... So this is somewhat of an issue. See also bug 132682

I'm on of those benjamins.. who tend to heaving a conflict with page breaks. Settings are enabled for a table, because of a page break before... A setting off in general, except becoming the first character on a document after page break.. when it's turn-end on.. and the setting becomes permanent.. Copy/paste and there will be an new page.. with me - benjamin - being confused.. how. why. the page break.. I don't get it... 

I always thought that a page break was something 'outside' the document. A setting related to the only the dashed line -> Where you hoover over.. and and dialog popups.. 

I never 'realized' that dialog is related to table properties/paragraph properties of the first line of the page.

I would even consider it to be split. So you can manage a break without this setting affecting the item in the first paragraph or the table on top of the page... Setting to do this for a paragraph.. or table specifically is fine.. but turn it on behind someones back.. 

Of course LibreOffice does this.. since ever.
Comment 4 Telesto 2020-05-08 10:28:18 UTC
Created attachment 160528 [details]
Example file

1. Open the attached file
2. Select and copy the first line on second page
3. Paste it at first row on page 3
4. CTRL+Z
5. Paste it on the second row on page 3
6. CTRL+Z
7. Copy the table of the first page
8. Paste it on the 3 page first line -> Unexpected compared to result of (step 3).And not consistent with Word either (not a proper benchmark.. but never the less)


Note to my previous comment. noticing that Word does the same.. for Text (as in the example) The issue Benjamin - me-  has is mitigated more or less by the popup.. Paste matching style (probably wrong translation)
Comment 5 Telesto 2020-05-08 10:28:41 UTC
Created attachment 160529 [details]
Proper example file
Comment 6 Mauro 2020-05-08 11:44:35 UTC
(In reply to Heiko Tietze from comment #2)
> To cut a table means that you add a character before, otherwise only the
> content is taken. And cutting the page break adds it back when pasting, of
> course.
> 
> I don't see an issue.

That's not right. Theoretically, with the mouse you should be able to select (and copy or cut) an entire table without selecting the character before. There is even a specific option to make just that (select all the table) in the Table menu (and the result is always the same). Why do you have to get the character before in the selection?

And even assuming that, by design, a table "cut" always selects the character before too (and I don't understand why), it would still be a bug, because if you cut the table (and assuming the table select should include the previous character too, in this case a page break), then why is the page break not cut too?
To me this is undoubtedly a bug.
Comment 7 Heiko Tietze 2020-05-11 13:29:40 UTC
(In reply to Mauro from comment #6)
> To me this is undoubtedly a bug.

Yes, agreed. And it's kind of a regression, see also bug 51689.

Version: 7.0.0.0.alpha1+
Build ID: 8664137ca0f6683d86ee6498d12f7d174aa2a1fc
CPU threads: 8; OS: Linux 5.6; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 8 Buovjaga 2020-06-13 13:46:47 UTC
(In reply to Heiko Tietze from comment #7)
> (In reply to Mauro from comment #6)
> > To me this is undoubtedly a bug.
> 
> Yes, agreed. And it's kind of a regression, see also bug 51689.

A regression based on what? I can repro steps 7-8 from comment 4 all the way back to 3.3. Removing keywords pending explanation.
Comment 9 QA Administrators 2022-08-05 03:31:50 UTC
Dear Telesto,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug