Bug Hunting Session
Bug 125972 - Enhancement: Tables, Pagebreak: "keep with next row" feature
Summary: Enhancement: Tables, Pagebreak: "keep with next row" feature
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: Cell-Management
  Show dependency treegraph
 
Reported: 2019-06-18 00:03 UTC by BottleOnTheGround
Modified: 2019-08-12 09:23 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Shows, that two rows cannot be grouped together in regard of page break (23.25 KB, application/vnd.oasis.opendocument.text)
2019-06-18 00:03 UTC, BottleOnTheGround
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BottleOnTheGround 2019-06-18 00:03:11 UTC
Created attachment 152253 [details]
Shows, that two rows cannot be grouped together in regard of page break

For text you have the option:
 Menu -> Format -> Text Flow -> Keep with next paragraph

My Suggestion:
 Create a similar feature for tables, to make libre writer be able to group rows together.

Current situation:
Two rows cannot be grouped together.

@Attachment: 
It's not possible to tell Writer to keep row "c" connected with row "d" at the page break.
Comment 1 Dieter Praas 2019-06-18 11:42:35 UTC
I think, you'r right, that it isn't possible.

Proposal:
1. Mark a row
2. right click => context menu
3. There should be an option "Keep with next row"

I add Design Team for further input and decision.
Comment 2 Heiko Tietze 2019-06-18 13:16:44 UTC
The example is a bit misleading. When I add two more lines it breaks when Table > Properties: Text Flow > Allow row to break across pages and columns is checked (or the table wide setting Table > Row to Break Across Pages). 

Now the request is to have this option in the context menu?
Comment 3 Dieter Praas 2019-06-21 11:28:30 UTC
(In reply to Heiko Tietze from comment #2)
> The example is a bit misleading. When I add two more lines it breaks when
> Table > Properties: Text Flow > Allow row to break across pages and columns
> is checked (or the table wide setting Table > Row to Break Across Pages). 

Yes, but this would change layout. Layout will be preserved if you split table, but in this case you have of course two tables instead of one.
Comment 4 Justin L 2019-06-27 16:26:42 UTC
(In reply to Heiko Tietze from comment #2)
> The example is a bit misleading.
No, you didn't understand what he is asking for.  He wants the table to be able to flow across the page boundary, but he wants the option to require SPECIFIC rows to stick together - just like specific paragraphs can be made to stick together.

My answer would be to just split the table into two, and then prevent each table from splitting. I assume that his suggestion requires a modification of the ODF specs. I can't see this being a much in demand feature.

I suspect that MSWord supports something like this, using the keep-with-next paragraph attribute on the first cell paragraph in the row.
Comment 5 Heiko Tietze 2019-07-11 18:55:23 UTC
We talked in the design meeting about the topic and cannot give further input. There is the checkbox "Keep with next paragraph" and we would also expect it to work respectively. 
If there is some (unclear) reason why it can't work lile this we need a documentation and perhaps also a different label.
Comment 6 Justin L 2019-07-11 19:07:09 UTC
(In reply to Heiko Tietze from comment #5)
> There is the checkbox "Keep with next paragraph"
That is a "table" property, and not a "row" property.  That only means that the table will try to stay on the same page as the first paragraph that comes after the table. It has nothing to do with certain rows within the table keeping together.
Comment 7 Heiko Tietze 2019-07-11 19:11:11 UTC
(In reply to Justin L from comment #6)
> That is a "table" property, and not a "row" property.

And the expectation is that this option works also in tables.
Comment 8 Justin L 2019-07-11 19:21:52 UTC
(In reply to Heiko Tietze from comment #7)
> (In reply to Justin L from comment #6)
> > That is a "table" property, and not a "row" property.
> 
> And the expectation is that this option works also in tables.
It does work AFAIK.
Unfortunately that does not help OP in his enhancement request.

Perhaps you mean that a PARAGRAPH property of "keep with next paragraph" is expected to be honoured *even though it is inside of a table*? That would be another matter altogether, and that could indeed resolve OP's problem (although it would create lots of other problems).
Comment 9 Justin L 2019-07-12 05:30:56 UTC
I found some documentation for keep-with-next here: https://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#keep-with-next

> Applies to: 	block-level formatting objects, inline formatting objects,
> fo:list-item, and fo:table-row
I have to admit that this didn't really help me understand the situation very well, but it does suggest that my assumption in comment 4 is incorrect.
Comment 10 BottleOnTheGround 2019-08-12 09:23:24 UTC
(In reply to Heiko Tietze from comment #2)
> The example is a bit misleading. When I add two more lines it breaks 
You changed the content of the document. The goal should be to change the format of the document.

So,
> Now the request is to have this option in the context menu?
No.

> Table > Properties: Text Flow > Allow row to break across pages and columns
Will not have the effect of keeping "c" row together with "b" row.

(In reply to Justin L from comment #3)
> My answer would be to just split the table into two, and then prevent each table from splitting.
This is a workaround.

(In reply to  Heiko Tietze from comment #5 and #7)
> There is the checkbox "Keep with next paragraph" and we would also expect it to work respectively. 
> [...] And the expectation is that this option works also in tables.
No current "Keep with next paragraph" formatting option would cause "c" row to stick to "b" row. If you feel I am wrong here, please upload an attachment.