I am writing the following html in to a word document using builder.InsertHtml()
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
</head>
<body>
<div align="left"><font face="Arial"><span style="font-size:8pt">a</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:8pt">b</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:8pt">c</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:8pt">d</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:8pt">e</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:8pt">f</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:8pt">g</span></font></div>
<div align="left"> </div>
</body>
</html>
The problem is that the div element causes each paragraph that is created from this insert to have its ‘SpaceAfterAuto’ value set to true and the ‘SpaceAfter’ value set to 14.0.
This produces extra spacing between each line which is inconsistent with how this html is presented when opened in either IE / Microsoft Word.
I cannot edit/change the html as this is output from another third party html control.
Please advise how I can avoid this line spacing problem?