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.2.tar.gz
(1.5 kB
view hashes)
Built Distribution
Close
Hashes for indentation-1.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3581e273f65771583ef11cbdf95ed1ef012c09043f0f7eabddd7c5f8008f5ddf |
|
MD5 | 558ad229724bce049ff75171ee3ce1ce |
|
BLAKE2b-256 | 13f63f0537ad9f202de59f2898a759b3fc93cb3a3bfa697c84c87d416e5c70d7 |