If you need to remove line breaks from text with C# you can use next string method:
Replace - returns a new string in which all occurrences of a specified string in the current instance are replaced with another specified string.
Environment.NewLine Property A string containing "\r\n" for non-Unix platforms, or a string containing "\n" for Unix platforms.