https://bugs.freedesktop.org/show_bug.cgi?id=61479
Priority: medium
Bug ID: 61479
Assignee: [email protected]
Summary: DOCX style inheritance not respecting pageBreakBefore
being turned off
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: Other
Status: NEW
Version: 4.0.0.3 release
Component: Writer
Product: LibreOffice
Created attachment 75547
--> https://bugs.freedesktop.org/attachment.cgi?id=75547&action=edit
Test case demonstrating extra page break
Please see the attached DOCX test case.
There is a style "Opening Words" defined as:
<w:style w:customStyle="1" w:styleId="OpeningWords" w:type="paragraph">
<w:name w:val="Opening Words"/>
<w:basedOn w:val="Normal"/>
<w:rsid w:val="00FA22B5"/>
<w:pPr>
<w:pageBreakBefore/>
</w:pPr>
</w:style>
Then there is a second style "Opening Words NoPB" defined as:
<w:style w:customStyle="1" w:styleId="OpeningWordsNoPB" w:type="paragraph">
<w:name w:val="Opening Words NoPB"/>
<w:basedOn w:val="OpeningWords"/>
<w:rsid w:val="00FA22B5"/>
<w:pPr>
<w:pageBreakBefore w:val="0"/>
<w:spacing w:before="480"/>
</w:pPr>
</w:style>
The style "Opening Words NoPB" should not have a page break before it and does
not in Word but Libre office seems to ignore the <w:pageBreakBefore
w:val="0"/>, treating it as if it was <w:pageBreakBefore w:val="1"/>
Other style removal traits seem to be working well such as removal of all caps
and bold e.g.
<w:style w:customStyle="1" w:styleId="CPTitlenocapsnobold" w:type="paragraph">
<w:name w:val="CP Title no caps no bold"/>
<w:basedOn w:val="CPTitle"/>
<w:rsid w:val="0089493E"/>
<w:rPr>
<w:b w:val="0"/>
<w:caps w:val="0"/>
</w:rPr>
</w:style>
The style definitions above are taken from the word/styles.xml component of the
DOCX archive
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs