I have a variable text (in Python) with the text that should be printed in a file and it has a lot of variable length, extra whitespace at the beginning of most lines. All I want to do is delete these spaces. This is the code I used.I have a variable text (in Python) with the tex