Remove unwanted newlines from some arrays

Resolves #930.