We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Lack of line breaks cause document to fail to render

Thread ID:

Created:

Updated:

Platform:

Replies:

23992 Jan 26,2005 09:39 AM Jan 26,2005 10:35 AM Windows Forms 1
loading
Tags: HTMLUIControl
Adam Flynn
Asked On January 26, 2005 09:39 AM

This appears to be only an issue with larger documents. When using the either the LoadFromString or LoadHtml method, if the document does not contain regular line breaks (carriage return, line feed characters) then it appears to fail to render at all. A give 59KB html document will render properly if the html markup is formatted with returns and indentation for ease of reading. Example: Test Taking the same html document and removing all returns and indentation, so that the document is all on one line, causes the htmlUI control to render nothing. Example: test Note that the example supplied is for illustration only - it is of too small a size to cause the problem in rendering.

Adam Flynn
Replied On January 26, 2005 10:35 AM

Please ignore this for now. Further investigation on my part indicates that the HTMLUI control may not be responsible for this behavior. >This appears to be only an issue with larger documents. > >When using the either the LoadFromString or LoadHtml method, if the document does not contain regular line breaks (carriage return, line feed characters) then it appears to fail to render at all. > >A give 59KB html document will render properly if the html markup is formatted with returns and indentation for ease of reading. > >Example: > > Test > > >Taking the same html document and removing all returns and indentation, so that the document is all on one line, causes the htmlUI control to render nothing. > >Example: >test > >Note that the example supplied is for illustration only - it is of too small a size to cause the problem in rendering.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;