CodeIgniter Forums
Leading newline in output to browser - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Leading newline in output to browser (/showthread.php?tid=27592)



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.