Bug 76999 - TABLE: Tables don't stay on page properly
Summary: TABLE: Tables don't stay on page properly
Status: RESOLVED INVALID
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.3.3 release
Hardware: Other Windows (All)
: high major
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-03 12:59 UTC by dommac
Modified: 2015-02-19 14:00 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
a doc showing the problem (see from page 6 on) (246.04 KB, application/vnd.oasis.opendocument.text)
2014-04-03 12:59 UTC, dommac
Details
re-formatted file (241.51 KB, application/vnd.oasis.opendocument.text)
2014-04-03 20:36 UTC, David
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dommac 2014-04-03 12:59:13 UTC
Created attachment 96842 [details]
a doc showing the problem (see from page 6 on)

Problem description: 
I have a writer document with a table splitted between two pages. When I load the doc, I always find the table splitted between many pages with just one or two rows per page and the rest (the most part) empty. I can force the right formatting adding and deleting some lines before of the table.

I observed this problem (both on win and ubuntu) since many time but I never thought to file a bug so I selected the oldest one in the "Version the bug appeared:" list.

In attach the chapter of my book showing the problem (see from page 6 on).  

Steps to reproduce:
load the file in attach

              
Operating System: All
Version: 4.1.0.4 release
Comment 1 David 2014-04-03 20:36:25 UTC
Created attachment 96875 [details]
re-formatted file

In the re-formatted file I attached I selected all the text (ctrl-A) and then cleared all direct formatting (ctrl-M) and saved the document.  When I re-opened it the table was no longer split across many pages.  I am using version 4.2.3.2.  It has been my experience that many weird errors occur when formatting is changed manually instead of using the paragraph and character styles to do all the formatting for you.
Comment 2 Dominique Boutry 2014-04-08 11:56:53 UTC
Tied with bug 70018, in my opinion.
Comment 3 Gerrit Barrere 2014-04-13 22:27:46 UTC
When I select all, remove direct formatting, save, and reload the document it does not fix the problem.  I do see that sometimes the document reads in properly the first time and sometimes not.  

I also see where adding a line after the first four can make the second table jump to the second page.
Comment 4 sophie 2014-04-15 13:33:23 UTC
Hi, I agree also that the direct formatting is not the better way to handle that sort of document especially if it's a book. So removing the extra paragraph marks and setting the correct options in the table settings (if you add paragraph marks, then Keep with next paragraph should be set) places it correctly and didn't split on several pages. Set as worksforme. I use 4.2.3.3 under Ubuntu - Sophie
Comment 5 Gerrit Barrere 2014-04-21 21:28:23 UTC
(In reply to comment #4)
> Hi, I agree also that the direct formatting is not the better way to handle
> that sort of document especially if it's a book. So removing the extra
> paragraph marks and setting the correct options in the table settings (if
> you add paragraph marks, then Keep with next paragraph should be set) places
> it correctly and didn't split on several pages. Set as worksforme. I use
> 4.2.3.3 under Ubuntu - Sophie

I'm not sure I follow you. I can't remove the paragraph marks in the table -- each table cell seems to require at least one paragraph mark.  There aren't any extra paragraph marks in the tables of my test document.

And if I mark the two paragraphs in my Table 1 as "keep with next", that doesn't solve the problem here.  Table 2 remains on page 2 even with plenty of room on page 1.
Comment 6 DiegoM 2015-01-16 14:11:04 UTC
I was able to fix the example as follow (LO 4.2.7.2 on Linux):
-Selecting the full table (with column selection),
-using ctrl-M for removing the direct formating on the selection, 
-give to the full table the style Table Contents
-opening F11 Styles, 
- editing the style Table Contents for changing the font to 8pt
- editing the style Table Contents for changing the font to Bold
-F11 stays open, select the first row (is the table Header), give the style Table Heading
Text was fixed directly, without firs save-close-reopen.
No other change
Comment 7 Buovjaga 2015-02-19 14:00:42 UTC
Closing as INVALID per comment 6.