Page 1 of 1

Multiple spaces lost when saving to HTML

Posted: Sat Aug 23, 2008 6:55 pm
by hakanb
Hello,

I was testing TRichView and trying to Save the RichViewEdit to HTML with the following code:

Stream1:=TStringStream.Create('');
RichViewEdit1.SaveHTMLToStreamEx(
Stream1,'','Test','','','','', [rvsoUseCheckpointsNames,rvsoNoHypertextImageBorders,rvsoMarkersAsText]);

After I do, the text: "Test_________Test_____________Test"
is converted to: "Test Test Test"

( the "_" character should be considered as space character )

how can this be resolved?

Thanks.

Posted: Sun Aug 24, 2008 7:25 pm
by Sergey Tkachenko
It's strange, because if there are more than two spaces in row, on HTML export they must be converted to a sequence of spaces and non-breaking spaces, to make sure that browsers will display all of them.
May be rvteoHTMLCode was included in the Options of text style?