[yunqa.de] Re: Preserving carriage returns

  • From: Delphi Inspiration <delphi@xxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Sat, 19 Apr 2008 08:56:40 +0200

Simon Beesley wrote:

>How do you preserve carriage returns (#13) with TDIHtmlParser?

Do you mean white space normalization? DIHtmlParser can automatically 
normalizes multiple white space and line breaks into single white space, just 
as web browsers do. The relevant option property is

  TDIHtmlParser.NormalizeWhiteSpace: Boolean

This defaults to False, so all white space and line breaks are returned 
unchanged. Maybe you accidentally set it to True somewhere in your project?

Ralf

PS: Text within <pre> ... </pre> is never normalized, even with 
NormalizeWhiteSpace enabled. 

_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts: