Created
January 19, 2018 12:38
-
-
Save T1T4N/94f8fee5d93782fe11a48c1499bf2404 to your computer and use it in GitHub Desktop.
Python snippet to indent a variable that might possibly be multiline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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