ObeoNetwork / M2Doc

The M2Doc technology enables the generation of Office Open XML documents from models.
http://obeonetwork.github.io/M2Doc/
Eclipse Public License 2.0
39 stars 22 forks source link

The HTML conversion doesn't uspport cell merge #460

Closed ylussaud closed 2 years ago

ylussaud commented 2 years ago

The HTML conversion should support rowspan and colspan. using following MCell methods.

ylussaud commented 2 years ago

A sample code:

<table border="1" bordercolor="#000000" cellpadding="2" cellspacing="1" dir="LTR" width="172">
<tbody>
    <tr>
        <td colspan="1" height="19" rowspan="2" width="50%">
        <p align="CENTER">test</p>
        </td>
        <td height="19" width="50%">
        <p align="LEFT"><font face="Calibri" size="3"><font face="Calibri" size="3">c</font></font></p>
        </td>
    </tr>
    <tr>
        <td height="19" width="50%">
        <p align="LEFT"><font face="Calibri" size="3"><font face="Calibri" size="3">d</font></font></p>
        </td>
    </tr>
    <tr>
        <td height="19" width="50%">
        <p align="LEFT"><font face="Calibri" size="3"><font face="Calibri" size="3">a</font></font></p>
        </td>
        <td height="19" width="50%">
        <p align="LEFT"><font face="Calibri" size="3"><font face="Calibri" size="3">e</font></font></p>
        </td>
    </tr>
    <tr>
        <td height="19" width="50%">
        <p align="LEFT"><font face="Calibri" size="3"><font face="Calibri" size="3">b</font></font></p>
        </td>
        <td height="19" width="50%">
        <p align="LEFT"><font face="Calibri" size="3"><font face="Calibri" size="3">f</font></font></p>
        </td>
    </tr>
</tbody>