SyntaxFix
Write A Post
Hire A Developer
Questions
To handle many newline delimiters, including character combinations like \r\n, use splitlines (see this related post) use the following:
\r\n
'<br />'.join(thatLine.splitlines())