-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Page break adds new line in the beginning of the new page #150
Comments
please add to documentation what are those options: <w:compat>
<w:useNormalStyleForList/>
<w:doNotUseIndentAsNumberingTabStop/>
<w:useAltKinsokuLineBreakRules/>
<w:allowSpaceOfSameStyleInTable/>
<w:doNotSuppressIndentation/>
<w:doNotAutofitConstrainedTables/>
<w:autofitToFirstFixedWidthCell/>
<w:underlineTabInNumList/>
<w:displayHangulFixedWidth/>
<w:splitPgBreakAndParaMark/>
<w:doNotVertAlignCellWithSp/>
<w:doNotBreakConstrainedForcedTable/>
<w:doNotVertAlignInTxbx/>
<w:useAnsiKerningPairs/>
<w:cachedColBalance/>
</w:compat> that saves from this bug right now |
We'll investigate and document this issue. I keep this open for now. Thanks. |
Hi @liesislukas. This bug was fixed in the develop branch. Please try something like the code below and confirm that there's no more new line before page break now. $phpWord = new PhpWord();
$section = $phpWord->addSection();
$section->addText('Page 1');
$section->addPageBreak();
$section->addText('Page 2'); I didn't change anything in |
Edit: Phrasing I can verify that this issue is solved. There is no longer a new line on the new page after using |
What's your script that produced that behaviour? Some scripts in |
My document is just a longer version of your example above. |
If we want to solve the issue, please at least give more information. I can't help you to solve the bug when I just receive short information. |
@ivanlanin I worded my first response poorly. I was verifying that the issue is fixed. I've edited the original response to make more sense. |
Ah, I see 😄 Thanks for the clarification 👍 |
I close this issue since I reported it first. |
Bug report from CodePlex.
The text was updated successfully, but these errors were encountered: