Skip to content

Commit a55405e

Browse files
authored
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....
1 parent 4decaff commit a55405e

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)