Bug 53088 - widow and orphan control does not work properly in table cells
Summary: widow and orphan control does not work properly in table cells
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: 2012-08-03 08:57 UTC by Thomas Esher
Modified: 2023-08-17 06:57 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example for the orphan-widow-bug in table cells (17.35 KB, application/vnd.oasis.opendocument.text)
2012-08-03 08:57 UTC, Thomas Esher
Details
Correct widow/orphan control example (22.26 KB, application/vnd.oasis.opendocument.text)
2021-09-24 07:39 UTC, Nikolaj
Details
Test cases for orphan and widow control in table cells (12.57 KB, application/vnd.oasis.opendocument.text)
2021-11-11 20:03 UTC, Nikolaj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Esher 2012-08-03 08:57:10 UTC
Created attachment 65079 [details]
Example for the orphan-widow-bug in table cells

s. Attachment
You may have to adapt it to your page layout
Comment 1 A (Andy) 2013-02-16 15:49:20 UTC
Could you please provide more information to reproduce this issue.
Comment 2 Thomas Esher 2013-02-16 19:17:01 UTC
"Widow" is a technical term of typesetter jargon. It is the single last line of an paragraph on a new page. Typesetters consider this ugly layout. Paragraph control should provide for pushing an extra line on the new page in this case.

THE FOLLOWING BEHAVIOUR IS CORRECT
This behavior you can experience when you take the attached example, go on page 2 below the line "But out of the cell it works" and delete only one line-feed - result: both lines on page 3 go up to page 2 together. Now press again return one time and two of the last lines will be pushed over to the next page.

This is controlled by paragraph format "Text flow" (my German UI says "Textfluss")
at the bottom of the dialog window. There you should find something like "orphan contol" and "widow control" with default setting to 2 lines each.

THE FOLLOWING BEHAVIOUR IS BUGGY
Now go to page 1 of the attached example below the line "Below the widow example"
and do the same as above. You can now observe as the "widow line" in the table cell disappears from page 2 when you delete on line. And it reappears when you press return.



Similar facts hold for an "orphan" as typesetters call them: A single line of a new paragraph at the end of a page. The attached file has pertinent examples prepared on pages 3 to 5.
Comment 3 Thomas Esher 2013-02-16 19:18:36 UTC
(In reply to comment #1)
> Could you please provide more information to reproduce this issue.

pls see Comment2
Comment 4 A (Andy) 2013-02-16 21:07:05 UTC
Nice and very interesting feature that I did not know/use before, but I have studied this in this sample with the additional explanation and now I can confirm this bug.  This behavior is really buggy and not consistent according to the rules.

@Thomas: Thank you very much for your fast response, so that I could reproduce this bug.

Result: reproducible with LO 4.0.0.3 (Win7 Home, 64bit)
Comment 5 Thomas Esher 2013-02-17 00:34:39 UTC
--- Von unterwegs gesendet. ---



bugzilla-daemon@freedesktop.org schrieb:

A changed bug 53088
WhatRemovedAddedStatusNEEDINFO NEW

Comment # 4 on bug 53088 from A Nice and very interesting feature that I did not know/use before, but I have studied this in this sample with the additional explanation and now I can confirm this bug. This behavior is really buggy and not consistent according to the rules. @Thomas: Thank you very much for your fast response, so that I could reproduce this bug. Result: reproducible with LO 4.0.0.3 (Win7 Home, 64bit)

_____________________________________________
You are receiving this mail because: You reported the bug.
Comment 6 QA Administrators 2015-02-19 15:36:33 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2015-03-07 12:33:07 UTC
Confirmed.

Win 7 Pro 64-bit, LibO Version: 4.4.1.2
Build ID: 45e2de17089c24a1fa810c8f975a7171ba4cd432
Locale: fi_FI
Comment 8 tommy27 2016-04-16 07:27:54 UTC Comment hidden (obsolete)
Comment 9 Thomas Esher 2016-04-17 21:35:08 UTC
Checked again with

• Win7 (64)
LO Version: 5.0.5.2
Build-ID: 55b006a02d247b5f7215fc6ea0fde844b30035b3
Gebietsschema: de-DE (de_DE)

• ubuntu 
LO Version: 5.0.2.2
Build ID: 00m0(Build:2)
Locale: en-US (en_US.UTF-8)

Bug is still reproducible.
Comment 10 Thomas Esher 2016-04-18 06:49:08 UTC
REGRESSION check executed.

Result: Bug present in LO 3.3

Version changed to INHERITED.
Comment 11 Sapomaro 2017-01-04 02:34:17 UTC
Paragraph text flow orphan and widow control still doesn't work in table cells.

Reproducible in Windows 10 Home and Windows 7 Home
LibreOffice Writer Version: 5.2.4.2 (x64) and older versions
Build ID: 3d5603e1122f0f102b62521720ab13a38a4e0eb0
Comment 12 QA Administrators 2018-06-24 02:40:50 UTC Comment hidden (obsolete)
Comment 13 QA Administrators 2020-06-24 03:41:27 UTC Comment hidden (obsolete)
Comment 14 Thomas Esher 2020-06-24 13:28:04 UTC
Bug is still present in

Version: 6.4.4.2 (x64)
Build-ID: 3d775be2011f3886db32dfd395a6a6d1ca2630ff
CPU-Threads: 20; BS: Windows 10.0 Build 18363; UI-Render: Standard; VCL: win; 
Gebietsschema: de-DE (de_DE); UI-Sprache: de-DE
Calc: threaded



For REGRESSION check see Comment #10.
Comment 15 BogdanB 2021-08-23 07:37:03 UTC
REPRO in
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 5b025285b3528910a4360899abb2bbbaadc72c97
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded
Comment 16 Nikolaj 2021-09-24 07:39:47 UTC
Created attachment 175231 [details]
Correct widow/orphan control example
Comment 17 Nikolaj 2021-09-24 07:51:36 UTC
Added an example adopted from https://bugs.documentfoundation.org/show_bug.cgi?id=130287. It shows the correct behaviour or widow/orphan control (Version 7.1.6.2). Probably it'll help to tackle the main issue
Comment 18 Nikolaj 2021-11-11 20:03:48 UTC
Created attachment 176197 [details]
Test cases for orphan and widow control in table cells
Comment 19 Nikolaj 2021-11-11 20:12:39 UTC
Some more research on the problem. After this discussion https://ask.libreoffice.org/t/typographic-issues-with-table-of-contents-and-unbreakable-paragraph-in-table/67975 prepared an example with cases where orphan and widow option is and is not respected: https://bugs.documentfoundation.org/attachment.cgi?id=176197. Keep with next and keep together for paragraphs in cells are never respected https://bugs.documentfoundation.org/attachment.cgi?id=175231.