indent

Indentation


Keywords
testing, logging, example
License
Other
Install
pip install indent==0.1

Documentation

indent-string Build Status

Indent each line in a string

Install

$ apt-get install python3-pip
$ pip install indent 

Usage

from indent.indent import indentation

indentation('Shadab\nZafar', '&', 3)
//=> &&&Shadab 
//=> &&&Zafar

About

indentation(string, indent, count)

string

Required

Type: string

The string you want to indent.

indent

Required

Type: string

The string to use for the indent.

count

Required

Type: number Default: 1

How many times you want indent repeated.

Todo

Make count as a default parameter.