Skip to Search
Skip to Navigation
Skip to Content
Community
|
Code
|
Docs
|
Downloads
▼
ActivePerl
ActivePython
ActiveTcl
ActiveGo
Komodo IDE
|
more
▼
Lists
Bugs
PPM Index
PyPM Index
Welcome, guest
|
Sign In
|
My Account
|
Store
|
Cart
ActiveState Code
»
Recipes
Languages
Tags
Authors
Sets
Recipe 576867 revision 1
def indent(txt, stops=1): return '\n'.join(" " * 4 * stops + line for line in txt.splitlines())
« Back to Recipe 576867
History
revision 1
(12 years ago)
x
Undo