Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Bold style is not applied to ordered list #2723

Open
2 tasks
christian-kolb opened this issue Jan 10, 2025 · 0 comments
Open
2 tasks

Bold style is not applied to ordered list #2723

christian-kolb opened this issue Jan 10, 2025 · 0 comments

Comments

@christian-kolb
Copy link

Describe the bug and add attachments

When supplying an ordered list that is formatted to be bold, only the content is bold, but the numbers of the ordered list is not.

So this is the HTML content supplied:

<html>
    <body>
        <div class="page">
          <ol>
            <li style="font-weight:bold;"><strong>Test bold 1</strong></li>
            <li style="font-weight:bold;"><strong>Test bold 2</strong></li>
          </ol>
        </div>
    </body>
</html>

Attached are the file for the current output and the expected output.

test.docx
test-expected.docx

I'm not 100% sure whether that is a bug or something that simply was never implemented in the first place.

Expected behavior

The expected behaviour is a word output that also styles the numbers as bold as shown in the supplied document above.

Steps to reproduce

Generate with the following HTML:

<html>
    <body>
        <div class="page">
          <ol>
            <li style="font-weight:bold;"><strong>Test bold 1</strong></li>
            <li style="font-weight:bold;"><strong>Test bold 2</strong></li>
          </ol>
        </div>
    </body>
</html>

PHPWord version(s) where the bug happened

1.3.0

PHP version(s) where the bug happened

8.3

Priority

  • I want to crowdfund the bug fix (with @algora-io) and fund a community developer.
  • I want to pay the bug fix and fund a maintainer for that. (Contact @Progi1984)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants