You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Word, titles can also be list items (happens when people want to automatically number their headings).
In PHPWord, such "paragraphs" are recognized as List items, but not as titles.
Describe the Bug
In Word, titles can also be list items (happens when people want to automatically number their headings).
In PHPWord, such "paragraphs" are recognized as List items, but not as titles.
Steps to Reproduce
Expected Behavior
I'd expect the output to be something like:
Current Behavior
Context
I believe this has something to do with the AbtractPart reader in for Word2007:
In the
readParagraph
function, the paragraph can either be a ListItem or a Title, but never both:https://github.com/PHPOffice/PHPWord/blob/77438025265482ddcf050bce520d3c2b51645108/src/PhpWord/Reader/Word2007/AbstractPart.php#L140C9-L163
The text was updated successfully, but these errors were encountered: