Multiple spaces lost when saving to HTML

General TRichView support forum. Please post your questions here
Post Reply
hakanb
Posts: 1
Joined: Sat Aug 23, 2008 6:48 pm

Multiple spaces lost when saving to HTML

Post 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.
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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?
Post Reply