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>