Hi,
We are using Aspose Words 20.2.0.0 version. I am getting inconsistent results when using this code. Sometimes I get single spacing and other times double spacing in the HTML “<div><br></div>
”.
private DocumentBuilder InsertHtml(Bookmark item, DocumentBuilder builder, string strHtml, ADoc doc)
{
doc.NodeChangingCallback = new HandleNodeChangingFontChanger();
builder.ParagraphFormat.Alignment = ParagraphAlignment.Left;
builder.InsertHtml(strHtml);
doc.NodeChangingCallback = null;
return builder;
}
Here’s the HTML that renders with single or double spacing:-
<table>
<tr>
<td style="vertical-align:top; padding-bottom: 11px;">
<span style="width:70px;">1. </span>
</td>
<td colspan="2" style="vertical-align:top; padding-bottom: 11px;">
The Proposed Insured must notify the Company in writing of the name of any party not referred to in this Commitment who will obtain an interest in the Land or who will make a loan on the Land. <div><br></div><div>The Company may then make additional Requirements or Exceptions.</div>
</td>
</tr>
</table>
Please advice.
Thanks,
V