SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2004
    Location
    CA
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Removing blank lines from source

    I use a server-side scripting language that leaves blank lines in the source code after parsing the server-side tags. What is the best way to remove these lines?

    - Grant

  2. #2
    doing my best to help c2uk's Avatar
    Join Date
    May 2005
    Location
    Cardiff
    Posts
    1,832
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not enough info to help you out, sorry. The solution is to look at your php/asp/whatever code, your blank lines are created somewhere in there.

    It might also be useful to know which server-side language you are using so we may be more able to guide you as to which code creates a new line, in asp for example it's vbCrLF. Knowing which server-side language it is, you might also have more chance to get help if you post it in the respective subforum.
    Dan G
    Marketing Strategist & Consultant

  3. #3
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why do you want to remove the blank lines? They will only be line breaks, and won't be making much difference to your overall page weight (at least not compared to even the smallest image).


Bookmarks

Posting Permissions

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