in C# I have a string I am writing to the outputstream of the response. After I save this document and open it in Notepad++ or WordPad I get nicely formatted line breaks where
Try this :
string myStr = ... myStr = myStr.Replace("\n", Environment.NewLine)