GetSimple Support Forum
Remove first empty line in document - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: Remove first empty line in document (/showthread.php?tid=4761)



Remove first empty line in document - xyk - 2013-05-20

I am working on a simple RSS feed for my site but this error keeps coming up:
error on line 2 at column 6: XML declaration allowed only at the start of the document

This is from Chrome with the correct Content-Type headers set for xml. Apparently XML doesnt like it when the declaration isn't at the very top. All the other pages have a newline as the first line in the markup as well (right before the doctype declaration). Is there any way to remove this so it validates? Im guessing it's something in the core because I can't find anything else.

[Image: mN6oWDm.png]


RE: Remove first empty line in document - shawn_a - 2013-05-20

This happens if you include a file that has white space at end of the file after closing php tag.


RE: Remove first empty line in document - shawn_a - 2013-05-20

Does this use core files, or is this a plugin having this issue?
What version of gs?