Text indentation functions.
Project description
Text indentation functions.
Usage
Indenting to a specific level:
>>> import indentation
>>> indentation.set( "hello", 1 )
' hello'
>>> indentation.set( " hello", 0 )
'hello'
Indenting to a specific level (and keeping relative lines in place):
>>> import indentation
>>> print( indentation.set("hello\n world", 1) )
hello
world
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
indentation-1.0.0.zip
(2.9 kB
view hashes)