in reply to Convert to Single line

What have you tried and where did you encounter problems?

Have you tried removing all newlines from your script?