Skip to content

Commit 2074d35

Browse files
committed
Fix PreserveText in Section #452
1 parent aae9ad4 commit 2074d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Element/AbstractContainer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ private function checkValidity($method)
211211
'TextBox' => array('Section', 'Header', 'Footer', 'Cell'),
212212
'Footnote' => array('Section', 'TextRun', 'Cell'),
213213
'Endnote' => array('Section', 'TextRun', 'Cell'),
214-
'PreserveText' => array('Header', 'Footer', 'Cell'),
214+
'PreserveText' => array('Section', 'Header', 'Footer', 'Cell'),
215215
'Title' => array('Section'),
216216
'TOC' => array('Section'),
217217
'PageBreak' => array('Section'),

0 commit comments

Comments
 (0)