pydocx icon indicating copy to clipboard operation
pydocx copied to clipboard

Handle pageBreakBefore

Open kylegibson-rldatix opened this issue 11 years ago • 2 comments

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

kylegibson-rldatix avatar Jun 04 '14 21:06 kylegibson-rldatix

I would have expected this for that HTML:

<hr />
<p>AAA</p>

winhamwr avatar Jun 04 '14 21:06 winhamwr

That does make more sense. If we go that route, we'll need to update the other break cases to do the same.

kylegibson-rldatix avatar Jun 04 '14 21:06 kylegibson-rldatix