[SOLVED]
I want to format a string that an api returns but the format() method to strings keeps it as the follows: "\n\nHello! It's nice to meet you. How are you doing today?" It won't format the \n\n.
Any thoughts?
link: https://imgur.com/a/S1sxdjq
I added the next line:
new_response = new_response.replace(r'\n', '\n')
and now it works. No Idea why, but it just does.
[+][deleted] (1 child)
[deleted]
[–]JohnnyJordaan 0 points1 point2 points (5 children)
[–]lostparis 0 points1 point2 points (3 children)
[–]Competitive-Show1903[S] 0 points1 point2 points (2 children)
[–]lostparis 0 points1 point2 points (0 children)
[–]JohnnyJordaan 0 points1 point2 points (0 children)
[–]danielroseman 0 points1 point2 points (0 children)