-
-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is page break implemented correctly? #25
Comments
https://web.archive.org/web/20160820235211/http://officeopenxml.com/WPtextSpecialContent-break.php I followed this documentation when implementing it you can see that it has I'm using waybackmachine cos the original website is down (hence im porting it) 😂 |
I have ported the page over: https://github.com/dolanmiu/Office-Open-XML-Reference/wiki/Paragraph-Line-Break |
I think you was thinking of the below. Paragraph and Run both have breaks! but they do different things. |
@dolanmiu you are correct that What it looks like now:
What it should look like:
Update: at least, this is the difference between my docx generated file where the page break is unrecognized, and Word-created docx file where the page break is recognized. I can't seem to find anything else, and when I removed the |
This has been fixed in #41. We should be able to close this issue. |
The implementation of
paragraph.pageBreak()
has it add a<w:br w:type="page"/>
element to thew:pPr
element of the paragraph. Looking at the spec, I could only findw:br
under "17.3.3 Run Content", which is implemented asRun#break
.If my reading is correct, I think we should remove this method and add it to
Run
The text was updated successfully, but these errors were encountered: