Text will always “come back” the same way you insert it. You will lose some formatting in HTML (as you notice line endings and spaces). One solution might be to convert the text to an element <pre> (which involves preformatted text) .
<pre>
This text will
be formatted correctly
</pre>
Another way would be to convert your format to HTML, which is well formatted. A wiki can usually do this: save the text as markup and display it in HTML. Probably this particular site works with messaging, etc. If you choose this route, I can recommend the creoleparser library , and it works great on Appengine.
source
share