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
Page breaks both in paragraph and paragraph style are lost
Page breaks retained as in original file
User Profile Reset: Yes
In RTF file the \pagebb keyword should be saved both in style and paragraph definition.
Similar, but different from Bug 116753
Created attachment 157477 [details]
Created attachment 157478 [details]
File saved as RTF
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: 184.108.40.206.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
(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: 220.127.116.11.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.