Remove trailing line in MySQLi file
Add test to find leading and trailing whitespace
Merge pull request #583 from greezybacon/issue/579

Fix printing / attachment download issues

Reviewed-With: Peter Rotich <peter@osticket.com>