in reply to Why is "\n" displayed as space in browser?

You see spaces in the browser because your output is interpreted as HTML, and in HTML all kind of whitespaces are just interpreted as spaces.

You can use pargraphs (<p>...</p>), line breaks (<c><br>) or <pre>...</pre> to do more formatting. Or just emit plain text instead.