Skip to content

Page Break After isn't registered #220

@jfglenn

Description

@jfglenn

Defect
A break is not included in the word document when the property "page-break-after:always" is added to the inline-styling of a div or any of the tags supporting a break (html<p>, <pre>, <div>, <span> and <body>). I understand this property is obsolete and that the browser automatically converts it to "break-after:page", so I string replace the newer property with the obsolete property before conversion. This still does not work.

However, string replacing "break-before:page" with "page-break-before:always" does work!

Expected behavior
I expected "this is a test" to be on a separate page by itself.

Repro

    <div style="page-break-after:always">
          Lorem ipsum dolor sit amet,
          consectetur adipiscing elit.
    </div>
    <p>this is a test</p>
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions