View Full Version : Ignoring whitespace

09-28-2011, 11:48 AM
Hi all, are there any tags i can use that will tell the parser somehow to ignore whitespace in the HTML section? The html and jave script is pasted into a custom page widget that can interpret the code, the problem is that my indentation and general coding formatting as i am writing it in my editor is also somehow being translated in the rendering - it seems mostly to be the linebreaks, in fact i would say it is only the line breaks, so the layout is appearing spread across too many lines for example, instead of neat and tight together, which is what i see in a browser. I realise this is probably the parser implementation at the application end, but can i get around this directly myself?
I cannot use xml or xslt to get around this, i can only write direct html or java into this custom widget.

09-28-2011, 07:43 PM
by what you are saying I would guess that you want to use a regular expression to remove the \n (line-breaks) before sending the code to the widget... Does that sound like what you need? Do you have a link to a sample of the issue?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum