Hapus spasi putih di depan yang umum dari setiap baris dalam teks.
textwrap.dedent(text)
def test():
end first line with \ to avoid the empty line!
s = '''\
hello
world
'''
print(repr(s)) prints ' hello\n world\n '
print(repr(dedent(s))) prints 'hello\n world\n'