Page 1 of 1

Tabs lost when converting to HTML

Posted: Thu Jun 18, 2020 12:42 pm
by krimsoniuss
Hi,

when I have tab stops in the RichViedEdit they are lost when converting to HTML. In our case the email that we create based on the RichText to HTML conversion loses the tab stops.

Maikel

Re: Tabs lost when converting to HTML

Posted: Thu Jun 18, 2020 2:58 pm
by Sergey Tkachenko
HTML cannot contain tabs.
In HTML, tabs, spaces, line breaks are all white-space characters. Browsers show any sequence of white-space characters as a single space character (or, in some places, ignore them completely).
What's why TRichView saves tabs a several alternate space and non-breaking-space characters.