Why \n does not expand when read file but yes in built-in strings?
Advertisements If you run tmpl = "This is the first line\n And this is the second line" print("tmpl) you get This is the first line And this is the second line So you get a new line expanded. But if you write in a file, you will not get that: Put in test.tmpl: This is… Read More Why \n does not expand when read file but yes in built-in strings?