If you need to remove line breaks from text with Python you can use next string method:
Return a copy of the string with all occurrences of substring old replaced by new. If the optional argument count is given, only the first count occurrences are replaced.
Line breaks in text are generally represented as: