Skip to content

HTML paragraph within sub-sub-numbering is moved when export to Word #2143

Open
@auliawiguna

Description

@auliawiguna

Describe the Bug

Some of text are moved when export data to Word file
This is source HTML

image

This is the export result, as you can see that Objective phrase is moved

image

Steps to Reproduce

Export these lines of HTML, this HTML is lies in table's cell

<ol>
   <li>
      <p>respects, to all organisations. Further, and in order to derive the greatest utility for readers, this assessment:</p>
      <ul>
         <li>Canvasses the specific needs of COVID-19 influenza, but takes an otherwise agnostic approach to which pandemic is presenting.</li>
         <li>Assumes that the pandemic is nearing its peak, but that nothing significant has yet been done by the organisation.</li>
         <li>Assumes an organisation with no significant pandemic controls in place, and one in which 'visitors' to the workplace are not essential to the purpose of the entity.</li>
      </ul>
      <p><b>Objectives</b></p>
      <p>The key objective of this assessment include articulating the current situation for the organisation, in the context of COVID-19, thus demonstrating the business case/justification for implementing security</p>
   </li>
</ol>

And this is the result

image

As you can see that this line

      <p><b>Objectives</b></p>
      <p>Hi This is paragraph</p>

are moved before <ul> next to first para <p>

Expected Behavior

**Objectives**
This Is Para

Should be exported after <ul>

Current Behavior

**Objectives**
This Is Para

Moved before <ul>

Context

Please fill in your environment information:

  • PHP Version: 7.0
  • PHPWord Version: 18.2
  • Framework : Yii2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions