Open ayDavidGitHere opened 1 year ago
I'm also working on a solution to this problem. Do you have some idea now?
I concluded there is no /PHPWord way to do it, I implemented a custom and rough solution. I unfortunately don't have that code available at this moment.
I'm using the PHPWord library to clone a block containing a multilevel numbered list in a DOCX document. However, I've noticed that the numbering inner levels in the cloned block continues from the original block, which is not the behavior I'm looking for. I'd like to reset the numbering in lists inside the new block.
Steps to Reproduce:
Clone a block containing a multilevel numbered list using the cloneBlock method. Observe that the numbering in the cloned block continues from the original block. Expected Behavior: I would like to reset the numbering in the lists inside the cloned block so that they start from the beginning (e.g., 1, 2, 3...).
Current Implementation:
Sample Docx Result
Desired Solution: I'm looking for guidance on how to reset the numbering in the inner lists inside the cloned block so that they start from the beginning. Any suggestions or code examples would be greatly appreciated.