SyntaxFix
Write A Post
Hire A Developer
Questions
If anybody decides to use replace, you should try r'\n' instead '\n'
replace
r'\n'
'\n'
mystring = mystring.replace(r'\n', ' ').replace(r'\r', '')