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. Image for the cookie policy date

Lack of line breaks cause document to fail to render

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.

1 Reply

AF Adam Flynn 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.

Loader.
Live Chat Icon For mobile
Up arrow icon