derwiki / scripts

Repository of shell scripts that have made my life easier
10 stars 3 forks source link

make usage text more readable with textwrap.dedent #5

Closed derwiki closed 13 years ago

derwiki commented 13 years ago

https://gist.github.com/966892 def help_text(): from textwrap import dedent print dedent(""" If you do this, it will print correctly without looking so ugly in code.""") help_text()

derwiki commented 13 years ago

fixed by lann, merged in at https://github.com/derwiki/scripts/commit/4a090e2e6f5c89025d240036aad949458d85397d