Skip to content

Commit bc4750d

Browse files
authored
Merge pull request #1060 from Mord1n/patch-1
ODT Writer automatic-styles should be closed before opening master-styles.
2 parents ab9a3db + a55405e commit bc4750d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Writer/ODText/Part/Styles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public function write()
5252
// Automatic styles
5353
$xmlWriter->startElement('office:automatic-styles');
5454
$this->writePageLayout($xmlWriter);
55-
$this->writeMaster($xmlWriter);
5655
$xmlWriter->endElement();
56+
$this->writeMaster($xmlWriter);
5757

5858
$xmlWriter->endElement(); // office:document-styles
5959

0 commit comments

Comments
 (0)