TMSFNCWXHTMLMemo - HTML import incorrect

The import function LoadFromHTMLFile is incorrect, additional blank lines are added. (The save function seems to be ok)

In a test project I have the TMSFNCWXHTMLMemo and a button.
A click on the button saves the document and loads it again immediately.

procedure TForm1.Button1Click(Sender: TObject);
begin
  TMSFNCWXHTMLMemo1.SaveAsHTMLFile('c:\Temp\test.html');
  TMSFNCWXHTMLMemo1.LoadFromHTMLFile('c:\Temp\test.html');
end;

When I view the sourcefile, it seems fine, but in the TMSFNCWXHTMLMemo additional blank lines are displayed.

before saving

Content after saving of the file

<!DOCTYPE html>
<html>
<head>
  <style>
    body {
      font-family: "Segoe UI";
    }
  </style>
</head>
<body>
<p>www.test.test</p>
</body>
</html>

after loading

Content after the second saving of the file
Additional content -> <br.><br.>

<!DOCTYPE html>
<html>
<head>
  <style>
    body {
      font-family: "Segoe UI";
    }
  </style>
</head>
<body>
<p>www.test.test</p><br><br>
</body>
</html>

I have attached a test project to case TTMSFNCWXHTMLMemo - Default font size

Hi,

Thank you for the test project, we were able to reproduce this issue and we applied a fix. The next version will contain the necessary changes.

The solution works, thank you very much.

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.