PHPOffice / PHPWord

A pure PHP library for reading and writing word processing documents
https://phpoffice.github.io/PHPWord/
Other
7.29k stars 2.7k forks source link

After adding a comment, the Android phone cannot be opened and prompts that the format is incorrect. However, PC and Apple phones can display it normally #2684

Open XiangSir-No1 opened 2 months ago

XiangSir-No1 commented 2 months ago

Describe the bug and add attachments

image

Expected behavior

Normal display

Steps to reproduce

$comment = $section->addComment('admin', new \DateTime()); $comment->addText('first comment'); $comment->setStartElement($startElement); $comment->setEndElement($endElement);

PHPWord version(s) where the bug happened

1.3.0

PHP version(s) where the bug happened

7.4

Priority

XiangSir-No1 commented 2 months ago

Only by adding comments can this problem occur

XiangSir-No1 commented 1 month ago

I know where the problem is and I have fixed it