Remove unwanted newlines from some arrays

Resolves #930.
Merge pull request #934 from runar/unwanted-newlines

Remove unwanted newlines from some arrays