Bug 164023 - EDITING: Toggling formatting marks changes the way tables are laid out (both states do it wrong)
Summary: EDITING: Toggling formatting marks changes the way tables are laid out (both ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.2.1 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Formatting-Mark
  Show dependency treegraph
 
Reported: 2024-11-24 10:41 UTC by vort3
Modified: 2024-12-27 03:13 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Paragraphs in a table jump between pages when toggling formatting marks in this sample file. (62.07 KB, application/vnd.oasis.opendocument.text)
2024-11-24 10:42 UTC, vort3
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vort3 2024-11-24 10:41:41 UTC
Description:
I have this file (will attach it after submitting a this bugreport) where toggling fromatting marks makes table look different. By "Different" I mean:
1. Depending on state of "Toggle formatting marks", sometimes paragraph will fit in a cess, and sometimes will not fit (when the cell is at the end of a page) and flow to the next page.
2. Sometimes whole cells will be on a different page depending on state of formatting marks.
3. In a master document that contains a file with this table, sometimes a table cell will not fit in a page and split in a half, so that second half of a cell is shown on the next page, but first half of it simply disappears on a previous page (it's not an actual loss of table content, it just becomes invisible, toggling formatting marks will make it appear again).

Tested on both windows (10) and linux (arch), in versions 24.8.2 and 24.8.3.

Both states are in fact laid out wrong because the paragraphs in cells have widow/orphan control enabled and are set to never split first/last 3 lines from a paragraph, but in both states you can notice that some cells text flows to the next page where only 1 line of a previous paragraph is present (orphans).

This might be a bug related to widow/orphan control of long paragraphs inside long tables, and also has to do with the way master documents show such tables with such paragraphs.

Steps to Reproduce:
I don't know when exactly this happens, but this always happens in the attached file. I guess it has to do with long tables with cells that contain a lot of text (multiple long paragraphs). Just open it, zoom out to see all pages on a screen and try toggling formatting marks.

Actual Results:
Text in tables unexpectedly jumps between pages every time you toggle.

Expected Results:
Table should look the same no matter the state of "Toggle formatting marks".


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.8.2.1 (X86_64) / LibreOffice Community
Build ID: 480(Build:1)
CPU threads: 16; OS: Linux 6.11; UI render: default; VCL: kf6 (cairo+wayland)
Locale: en-US (en_US.UTF-8); UI: en-US
24.8.2-2
Calc: threaded
Comment 1 vort3 2024-11-24 10:42:57 UTC
Created attachment 197762 [details]
Paragraphs in a table jump between pages when toggling formatting marks in this sample file.
Comment 2 Dieter 2024-12-26 09:45:35 UTC
I confirm it with

Version: 25.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0480e84e4c0b43d3829d83746636ad7a7037e76e
CPU threads: 12; OS: Windows 11 X86_64 (build 22631); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

Steps:
1. Open attachment 197762 [details]
2. Got to end of page 2
3. Toggle formatting marks on/off

Actual result
Last line of paragraph is on page 2 (with formatting marks off and on page 3 with formatting marrs on)

Expected result
No layout change