Issue with Generated HTML

  • I have some HTML that is being loaded into a TWPRichText control, and it looks ok, I then save it out as HTML for a preview, and the document is being double spaced, the original is made up of a table. Looking at the HTML that is being generated, it seems to be adding some strange html at the of the table row, see snippet of html below.

    Code
    <tr valign="top"><td valign="middle" style="vertical-align:middle;padding:0.00in;" class="p.MsoNormal"><font face="sans-serif" size="3"><span style="font-size:9.00pt;font-family:'sans-serif';color:#4A3918;">Tel:	&nbsp;&nbsp; +44 (0) 1892 825820<span style="font-size:9.00pt;font-family:'sans-serif';color:#4A3918;"><div>&nbsp;</font></div></td></tr>

    This has an extra SPAN and DIV at the end with a misplaced /font in the DIV, it also seems to generated extra blank table rows like.

    Code
    <tr valign="top"><td valign="middle" style="vertical-align:middle;padding:0.00in;">&nbsp;</td>
    </tr>

    Is there any reason it's doing this, or any way to stop it.
    I am using the latest version of WPTools, with Delphi 7.