Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2011
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ignoring whitespace

    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.

  • #2
    Regular Coder
    Join Date
    Apr 2005
    Location
    Texas
    Posts
    448
    Thanks
    24
    Thanked 63 Times in 63 Posts
    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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •