Bug fixes for last commit
This commit is contained in:
parent
410ce4bffe
commit
970c6a24eb
@ -175,8 +175,6 @@ class Styles extends AbstractPart
|
|||||||
*/
|
*/
|
||||||
private function writeMaster(XMLWriter $xmlWriter)
|
private function writeMaster(XMLWriter $xmlWriter)
|
||||||
{
|
{
|
||||||
$xmlWriter = $this->getXmlWriter();
|
|
||||||
|
|
||||||
$xmlWriter->startElement('office:master-styles');
|
$xmlWriter->startElement('office:master-styles');
|
||||||
|
|
||||||
$xmlWriter->startElement('style:master-page');
|
$xmlWriter->startElement('style:master-page');
|
||||||
|
|||||||
@ -154,7 +154,7 @@ class Styles extends AbstractPart
|
|||||||
* Write default font and other default styles
|
* Write default font and other default styles
|
||||||
*
|
*
|
||||||
* @param \PhpOffice\PhpWord\Shared\XMLWriter $xmlWriter
|
* @param \PhpOffice\PhpWord\Shared\XMLWriter $xmlWriter
|
||||||
* @param \PhpOffice\PhpWord\Style\AbstractStyle $styles
|
* @param \PhpOffice\PhpWord\Style\AbstractStyle[] $styles
|
||||||
*/
|
*/
|
||||||
private function writeDefaultStyles(XMLWriter $xmlWriter, $styles)
|
private function writeDefaultStyles(XMLWriter $xmlWriter, $styles)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -84,7 +84,7 @@ class ContentTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$doc = TestHelperDOCX::getDocument($phpWord, 'ODText');
|
$doc = TestHelperDOCX::getDocument($phpWord, 'ODText');
|
||||||
|
|
||||||
$element = "/office:document-content/office:body/office:text/text:p";
|
$element = "/office:document-content/office:body/office:text/text:section/text:p";
|
||||||
$this->assertEquals($expected, $doc->getElement($element, 'content.xml')->nodeValue);
|
$this->assertEquals($expected, $doc->getElement($element, 'content.xml')->nodeValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user