I am generating value labels using Python's
var_label = '\n'.join(['list', 'of', 'strings']).
When listing the variable labeled that way with the syntax command LIST my_var. , the newlines are printed as intended and neither errors nor warnings are issued. Obviously, Python's print(var_label) will also print the newlines correctly.
Running FREQUENCIES VARIABLES=my_var. , however, will give me a
„One or more values of variable my_var contained a non-printing character. Each such character was replaced by a space. The data file itself was not modified." warning and will actually make good on it.
Is it possible to create strings (preferably using Python) that actually print newlines in the three cases described, i.e. print, list and frequencies? Or, as a second choice, at least in the frequencies output?