Skip to content

fix bullet list render compatibility with latest ms word version #2770

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jgiacomello
Copy link
Contributor

Description

I noticed that creating a file from html unordered lists rendered symbols differently than the MS Word default.

Example code:

<ul>
    <li>lista 1</li>
    <li>lista 1<ul>
            <li>lista 2</li>
            <li>lista 2<ul>
                    <li>lista 3</li>
                </ul>
            </li>
            <li>lista 2</li>
        </ul>
    </li>
    <li>lista 1</li>
    <li>lista 1</li>
</ul>

result with current library version:
image

result with fixes:
image

I'm using this MS Word version: Microsoft® Word for Microsoft 365 MSO (Version 2502)

Checklist:

  • My CI is 🟢
  • I have covered by unit tests my new code (check build/coverage for coverage report)
  • I have updated the documentation to describe the changes
  • I have updated the changelog

@coveralls
Copy link

Coverage Status

coverage: 96.767%. remained the same
when pulling 7faa833 on jgiacomello:bullet_list_render
into 6ca8c9f on PHPOffice:master.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants