removed some bad newlines when generating HTML