In a TRichViewEdit I type in one word, followed by 2 carriage returns and then another word, so it looks like this:
Code: Select all
Hello
Sergey
<p class=X><span class=X>Hello</span></p>
<p class=X><span class=X><br></span> </p>
<p class=X><span class=X>Sergey</span></p>
Which produces Html that renders an extra blank line like this:
Code: Select all
Hello
Sergey
if (Result='') and IsFromNewLine(ItemNo) and
((ItemNo+1=ItemCount) or IsParaStart(ItemNo+1)) then begin
Result := Format('<br%s>', [RV_HTMLGetEndingSlash(SaveOptions)]);
I have commented out the line above in bold. Now when I save to html the html looks correct, but is this wrong to comment out this line?