It had nothing directly to do with your originally stated problem.
Have you fixed the newline problem yet?