CodeIgniter Forums
Leading newline in output to browser - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Leading newline in output to browser (/thread-27592.html)



Leading newline in output to browser - El Forum - 02-15-2010

[eluser]Unknown[/eluser]
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.


Leading newline in output to browser - El Forum - 02-16-2010

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