Skip to content

Invalid Word document created when using "bodydiv" #110

@raducoravu

Description

@raducoravu

The topic is this one:

    <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN"
    "topic.dtd">
    <topic id="abc">
      <title>title</title>
        
        <topic id="def">
            <title>title2</title>
            <body>
                <p>Para</p>
            </body>
            
            <topic id="id_q15_wh2_fwb">
                <title><b>Title3</b>
                </title>
                <body>
                    <bodydiv><b>Note:</b>
                        <b>Email Alert</b><p></p></bodydiv>
                </body>
            </topic>
        </topic>
    </topic>

When publishing a DITA Map which refers to it an invalid Word document is generated and it cannot be opened by MS Word. The document is still invalid if for example I remove the empty paragraph from the bodydiv.
This issue is similar to #87

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions