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.

Source Distribution

indentation-1.0.2.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

indentation-1.0.2-py2-none-any.whl (2.5 kB view details)

Uploaded Python 2

File details

Details for the file indentation-1.0.2.tar.gz.

File metadata

File hashes

Hashes for indentation-1.0.2.tar.gz
Algorithm Hash digest
SHA256 bf055062a0ea621142a8a0314bd8467168fba48d4d9652e3c99cbeaa954c3962
MD5 e912d0a4fb19bd1e1f155e1d7e7365fa
BLAKE2b-256 f6bf4df69a41d597170f042137622562e39ce3cf8fa496b4b053aa21c628e6b6

See more details on using hashes here.

File details

Details for the file indentation-1.0.2-py2-none-any.whl.

File metadata

File hashes

Hashes for indentation-1.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 3581e273f65771583ef11cbdf95ed1ef012c09043f0f7eabddd7c5f8008f5ddf
MD5 558ad229724bce049ff75171ee3ce1ce
BLAKE2b-256 13f63f0537ad9f202de59f2898a759b3fc93cb3a3bfa697c84c87d416e5c70d7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page