Unplanned
Last Updated: 11 Mar 2020 17:27 by ADMIN
SWAT
Created on: 11 Mar 2020 17:08
Category: WordsProcessing
Type: Bug Report
0
WordsProcessiong: HtmlFormatProvider: Importing nested divs leads to missing div styles

When nested div elements are imported the WordsProcessing library creates separate paragraph elements for each div. However, if the outer div doesn't contain any inline children preceding the inner div element, the first created paragraph will be removed and only the second paragraph will be left. This leads to losing any style properties of the outer div.

Example:

<div style="margin-top: 50px;">
    <div>Text</div>
</div>
This will produce a paragraph with no style paragraph property applied corresponding to the margin-top style.

0 comments