Skip to content

Formatting in lists via addHtml #1215

@rkorebrits

Description

@rkorebrits

We are having a few issues with formatting in lists. After seeing this issue: #945 I updated composer to take from the develop branch, but we are still not able to get formatting in lists.

I don't know how the documents are actually built up and maybe it is not possible to have formatting in lists, but as the documents otherwise are able to be styled perfectly and it's possible in Word to style lists, I would assume that is would be doable?

Expected Behavior

Ideally, lists with formatting (e.g. <strong>, <em>, <br>, etc.) would also be displayed like this in the Word output. Like this:

  • I am bolded.
    and I am not
  • I am italic and I am not

Current Behavior

On the develop branch all formatting is stripped. On the 0.13 branch, formatted copy is removed completely.

Context

  • PHP version: 7.1
  • PHPWord version: 0.13/develop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions