Advertisement:

Author Topic: Get rid of spaces in SSI.php  (Read 1928 times)

Offline Angelotus

  • Sr. Member
  • ****
  • Posts: 881
  • Gender: Male
    • Weeklyfun.nl | The Dutch Society of Fun
Get rid of spaces in SSI.php
« on: January 09, 2009, 06:37:45 AM »
Hello,
 
Somehow while editting my ssi.php, I got all these spaces in my file. How can I get rid of all these unnecesary spaces?

Offline Angelotus

  • Sr. Member
  • ****
  • Posts: 881
  • Gender: Male
    • Weeklyfun.nl | The Dutch Society of Fun
Re: Get rid of spaces in SSI.php
« Reply #1 on: January 12, 2009, 07:36:13 AM »
Can anyone help me out with this?

Offline H

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,662
  • Gender: Male
Re: Get rid of spaces in SSI.php
« Reply #2 on: January 12, 2009, 02:21:05 PM »
Sometimes certain editors accidentally add these as well as being a bug in the SMF attachment system in certain versions that adds new lines to text files.

Easiest thing to do would be to get a clean copy and re-apply and edits (unless you want to manually fix all the spacing :o)
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Offline Angelotus

  • Sr. Member
  • ****
  • Posts: 881
  • Gender: Male
    • Weeklyfun.nl | The Dutch Society of Fun
Re: Get rid of spaces in SSI.php
« Reply #3 on: January 21, 2009, 03:46:23 PM »
Thanks for your answer. I have heavily modified my SSI.php and it would be an enormous job just to edit it that way or the other way. I have heard of someone that had a programm that could delete the unnecessary spaces, but I don't know which programm that was...

Offline H

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,662
  • Gender: Male
Re: Get rid of spaces in SSI.php
« Reply #4 on: January 21, 2009, 04:47:43 PM »
I've seen someone programs that remove almost all of the spacing however these often make it impractical to edit afterwards :(. Looks like you may be stuck removing all the spaces manually
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)