`\n` should become ` `, but currently subsequent lines are appended directly without a space or line break.  
\nshould become, but currently subsequent lines are appended directly without a space or line break.