Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for indentation, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size indentation-1.0.0.zip (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page