Download it now!
Bug 130238 - "Page break before" in paragraph style is lost when saved as RTF file
Summary: "Page break before" in paragraph style is lost when saved as RTF file
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:rtf
Depends on:
Blocks: Writer-Page-Break RTF-Styles
  Show dependency treegraph
 
Reported: 2020-01-28 09:08 UTC by Marco
Modified: 2020-01-28 16:48 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Original file (8.52 KB, application/vnd.oasis.opendocument.text)
2020-01-28 09:10 UTC, Marco
Details
File saved as RTF (5.01 KB, application/msword)
2020-01-28 09:11 UTC, Marco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marco 2020-01-28 09:08:53 UTC
Description:
If a style has a break defined before page, the information is lost when the file is saved in RTF format.
If the page break is defined in the paragraph, but not in the style page breaks are retained.

Steps to Reproduce:
1. Open Writer and enter some paragraphs with different styles
2. Change a style definition with page break before in "Text Flow"
3. Save the file in RTF format
4. Reopen the file: the style has no page break

Actual Results:
Page breaks both in paragraph and paragraph style are lost

Expected Results:
Page breaks retained as in original file


Reproducible: Always


User Profile Reset: Yes



Additional Info:
In RTF file the \pagebb keyword should be saved both in style and paragraph definition.
Similar, but different from Bug 116753
Comment 1 Marco 2020-01-28 09:10:39 UTC
Created attachment 157477 [details]
Original file
Comment 2 Marco 2020-01-28 09:11:31 UTC
Created attachment 157478 [details]
File saved as RTF
Comment 3 Dieter 2020-01-28 14:45:19 UTC
Surprising result:

1. I opened file frome attachment in comment 1
2. I changed paragraph style of text "Heading 4 - Page break before" to Heading 3 style
3. I saved as rtf and reopened

Result: All page breaks are lost in paragraph styles, but page break remains in paragraph "Heading 4 - Page break before"

Version: 7.0.0.0.alpha0+ (x64)
Build ID: eeb2d19e77d6dc47c68e8ba0920a02cf64a1247b
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-GB
Calc: threaded

=> NEW
Comment 4 Marco 2020-01-28 16:48:43 UTC
(In reply to Dieter Praas from comment #3)
> Surprising result:
> 
> 1. I opened file frome attachment in comment 1
> 2. I changed paragraph style of text "Heading 4 - Page break before" to
> Heading 3 style
> 3. I saved as rtf and reopened
> 
> Result: All page breaks are lost in paragraph styles, but page break remains
> in paragraph "Heading 4 - Page break before"
> 
> Version: 7.0.0.0.alpha0+ (x64)
> Build ID: eeb2d19e77d6dc47c68e8ba0920a02cf64a1247b
> CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win; 
> Locale: de-DE (de_DE); UI-Language: en-GB
> Calc: threaded
> 
> => NEW

Hi Dieter. Line "Heading 4 - Paragraph page break before" has a page break assigned directly to the paragraph, not to the style: I think this explains the different behaviour.