PHPWord
PHPWord copied to clipboard
Inconsistent formatting
I just installed PHPWord and am trying out the sample code under the "Getting Started" section of https://github.com/PHPOffice/PHPWord . I am getting inconsistent formatting between ODT, DOCX, and HTML.
In ODT I get the color change on the third line of text, but I get a page break between the 2nd and 3rd paragraphs. I do not see a page break in the code.
In DOCX I do not get a color change on the third line of text. All four paragraphs are on the same page.
In HTML, No formatting is applied to the paragraphs. Looking in the source code I can see styles defined but there are no classes specified in the paragraph tags. Also, there seems to be a lot of extra CSS code that is not needed such as empty classes T1 and P1, table elements, a, and hr elements.
Just to be clear, I am only able to use OpenOffice 3.2 and am reading in the docx through there. I can open up standard docx files just fine so I am assuming there is some inconsistency as to how PHPWord is creating its files.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.