pydocx
pydocx copied to clipboard
Handle pageBreakBefore
Input XML
<p>
<pPr>
<pageBreakBefore/>
</pPr>
<r>
<t>AAA</t>
</r>
</p>
Output HTML (behavior consistent with how breaks are currently being handled)
<p><hr />AAA</p>
Output HTML (alternative, requires updating existing behavior)
<hr />
<p>AAA</p>
References:
- ECMA 376 Section 17.3.1.21
- http://www.schemacentral.com/sc/ooxml/e-w_pageBreakBefore-1.html
I would have expected this for that HTML:
<hr />
<p>AAA</p>
That does make more sense. If we go that route, we'll need to update the other break cases to do the same.