Skip to content
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

Closed
ivanlanin opened this issue Mar 20, 2014 · 10 comments
Closed

Page break adds new line in the beginning of the new page #150

ivanlanin opened this issue Mar 20, 2014 · 10 comments

Comments

@ivanlanin
Copy link
Contributor

Bug report from CodePlex.

@liesislukas
Copy link

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

@ivanlanin
Copy link
Contributor Author

We'll investigate and document this issue. I keep this open for now. Thanks.

@Progi1984 Progi1984 added this to the 0.9.1 milestone Mar 26, 2014
@ivanlanin ivanlanin modified the milestones: 0.11.0, 0.10.0, 1.0.0, Next Apr 13, 2014
@ivanlanin ivanlanin modified the milestones: 0.11.0, 1.0.0 May 18, 2014
@ivanlanin ivanlanin self-assigned this May 18, 2014
ivanlanin added a commit to ivanlanin/PHPWord that referenced this issue May 18, 2014
@ivanlanin
Copy link
Contributor Author

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 settings.xml to fixed this bug, but you can find the documentation about it in this page.

@ivanlanin ivanlanin modified the milestones: 0.12.0, 0.11.0 Jun 1, 2014
@lrobert
Copy link

lrobert commented Jun 5, 2014

Edit: Phrasing

I can verify that this issue is solved. There is no longer a new line on the new page after using $section->addPageBreak()

@ivanlanin
Copy link
Contributor Author

What's your script that produced that behaviour? Some scripts in samples folder (3, 9, etc) used page break too for comparison.

@lrobert
Copy link

lrobert commented Jun 6, 2014

My document is just a longer version of your example above.

@ivanlanin
Copy link
Contributor Author

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.

@lrobert
Copy link

lrobert commented Jun 6, 2014

@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.

@ivanlanin
Copy link
Contributor Author

Ah, I see 😄 Thanks for the clarification 👍

@ivanlanin
Copy link
Contributor Author

I close this issue since I reported it first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants