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: 2024-01-05 22:56 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.
Comment 5 Dieter 2021-12-01 16:03:27 UTC
Bug still present in

Version: 7.2.3.2 (x64) / LibreOffice Community
Build ID: d166454616c1632304285822f9c83ce2e660fd92
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 6 Marco 2023-01-25 09:51:51 UTC
Bug still present

Version: 7.3.7.2 (x86) / LibreOffice Community
Build ID: e114eadc50a9ff8d8c8a0567d6da8f454beeb84f
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: it-IT (it_IT); UI: it-IT
Calc: threaded

I added with a text editor the keyword \pagebb in the following rtf command ad it worked.
{\s1\sbasedon15\snext16\dbch\af5\dbch\af7\afs36\ab\ilvl0\outlinelevel0\sb240\sa120\keepn\pagebb\loch\f4\fs36\b Titolo 1;}

Hope this helps.