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 details)
Built Distribution
File details
Details for the file indentation-1.0.2.tar.gz
.
File metadata
- Download URL: indentation-1.0.2.tar.gz
- Upload date:
- Size: 1.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf055062a0ea621142a8a0314bd8467168fba48d4d9652e3c99cbeaa954c3962 |
|
MD5 | e912d0a4fb19bd1e1f155e1d7e7365fa |
|
BLAKE2b-256 | f6bf4df69a41d597170f042137622562e39ce3cf8fa496b4b053aa21c628e6b6 |
File details
Details for the file indentation-1.0.2-py2-none-any.whl
.
File metadata
- Download URL: indentation-1.0.2-py2-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3581e273f65771583ef11cbdf95ed1ef012c09043f0f7eabddd7c5f8008f5ddf |
|
MD5 | 558ad229724bce049ff75171ee3ce1ce |
|
BLAKE2b-256 | 13f63f0537ad9f202de59f2898a759b3fc93cb3a3bfa697c84c87d416e5c70d7 |