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
40 stars 22 forks source link

HTML tag centered can produce fillowing text centered even if it should not be centered. #486

Closed ylussaud closed 1 year ago

ylussaud commented 1 year ago

The following HTML body produce a centered First Paragraph.. This text should not be centered.

<center><img src="Mona_Lisa.jpg"/></center>
<br/><center><b>Figure: Mona Lisa</b></center>
<br/><br/>First Paragraph.<br/><br/>An other paragraph<br/><ul>
    <li>Item1</li>
    <li>Item2</li>
    <li>Item3</li>
</ul>
<br/><table>
    <tr>
        <td><b>M</b><a title="link" href="#">link</a></td>
        <td><b>Col3</b> (*)</td>
        <td><b>Col4</b></td>
        <td><b>Col5</b></td>
        <td><b>Col6</b></td>
        <td><b>Col7</b></td>
        <td><b>Col8</b></td>
        <td><b>Col9</b></td>
        <td><b>Col10</b></td>
    </tr>
    <tr>
        <td><b>1</b> M</td>
        <td>1/2</td>
        <td>1/2</td>
        <td>1/2</td>
        <td>2</td>
        <td>2</td>
        <td>2</td>
        <td>1/2</td>
        <td>1/2</td>
    </tr>
    <tr>
        <td><b>2</b> M</td>
        <td>1/2</td>
        <td>1/2</td>
        <td>1/2</td>
        <td>1</td>
        <td>2</td>
        <td>2</td>
        <td>1/2</td>
        <td>1/2</td>
    </tr>
    <tr>
        <td><b>3</b> M</td>
        <td>1/2</td>
        <td>1/2</td>
        <td>1/2</td>
        <td>2</td>
        <td>1</td>
        <td>2</td>
        <td>1/2</td>
        <td>1/2</td>
    </tr>
    <tr>
        <td><b>4</b> M</td>
        <td>2(**)</td>
        <td>1/2</td>
        <td>2</td>
        <td>2</td>
        <td>2</td>
        <td>1</td>
        <td>2</td>
        <td>1/2</td>
    </tr>
</table>
 <br/> <br/>yet an other text<br/><br/><br/>and one more text.<br/>