CodeIgniter Forums

Full Version: Leading newline in output to browser
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

CodeIgniter always puts a leading newline before the output to browser. This isn't a *real* problem for me, *yet*. But it's bothersome anyway and I can't alter this behavior. I've poked around in CodeIgniter.php to no avail. I can get a string to appear before the newline, by placing an echo to output the string in the index.php file, but then the echo string is on its own line, with the errant newline coming after.

I suspect it has something to do with output buffering, but I just can't figure it out.

El Forum

CI files don't use closing PHP tags, so this is from an addition or customization that you've made.