This code gives me an error message - obviously because of the \n
in the string-list.
Error Message: SyntaxError: EOL while scanning string literal
import ast
string = "['Text1', 'Long text\nwith new line...']"
print(ast.literal_eval(string))
Anyone ever dealt with that?