• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spaces before and after template inclusion

Hi guys,

I've noticed that whenever I include a template within other templates, line breaks are added in the HTML before and after the template that's been included. This normally doesn't bother me except for in some styling instances where the line breaks add more space around a listing.

If I embed the same chunk of code within the template that I was loading it into, then it's fine (there are no spaces).

I've checked through all my code for rogue spaces, and haven't found any. I was wondering if anyone has come across this before, and how I can remedy it?

Make sure that any php statements have no spaces after the ;?> tags

It could also be your code editor inserting them.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.