Update Styles.php

automatic-styles should be closed before opening master-styles.

This will prevent issue that styles wont work in future if you implement styling for ODT writer....
This commit is contained in:
Mord1n 2017-05-18 16:25:05 +02:00 committed by GitHub
parent 4decaffd53
commit a55405e655

View File

@ -52,8 +52,8 @@ class Styles extends AbstractPart
// Automatic styles
$xmlWriter->startElement('office:automatic-styles');
$this->writePageLayout($xmlWriter);
$this->writeMaster($xmlWriter);
$xmlWriter->endElement();
$this->writeMaster($xmlWriter);
$xmlWriter->endElement(); // office:document-styles