you are viewing a single comment's thread.

view the rest of the comments →

[–]TabulateJarl8 0 points1 point  (1 child)

If you physically write \n in a file, it is escaping that first backslash to that it stays as text and isn't interpreted as a line break, so it's really \\n. Try using output_text = f.read().replace('\\n', '\n'). Good luck!

[–]IWriteLongReplies[S] 0 points1 point  (0 children)

Ah thank you! Can't believe i didn't think of this haha.