Skip to content

Instantly share code, notes, and snippets.

@T1T4N
Created January 19, 2018 12:38
Show Gist options
  • Save T1T4N/94f8fee5d93782fe11a48c1499bf2404 to your computer and use it in GitHub Desktop.
Save T1T4N/94f8fee5d93782fe11a48c1499bf2404 to your computer and use it in GitHub Desktop.
Python snippet to indent a variable that might possibly be multiline
import textwrap
print(textwrap.indent(repr(output_var), " " * 4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment