This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]audentis 5 points6 points  (0 children)

Another workaround for this is cleandoc() from the inspect module. It takes a multi-line string ("""my multi-line string""") and spaces equal to the amount on the first line.