comparison textshaper/indent.py @ 31:23616399f36c

make indent a @lines function and test
author Jeff Hammel <k0scist@gmail.com>
date Sun, 23 Feb 2014 14:48:40 -0800
parents c23782a7b7ba
children 88a69d587326
comparison
equal deleted inserted replaced
30:ead4d5877b8f 31:23616399f36c
5 """ 5 """
6 6
7 import argparse 7 import argparse
8 import os 8 import os
9 import sys 9 import sys
10 from .decorator import lines
10 11
12 @lines
11 def indent(text, indentation=4, space=' ', strict=False): 13 def indent(text, indentation=4, space=' ', strict=False):
12 """ 14 """
13 indent a block of text 15 indent a block of text
14 16
15 text -- lines of text to indent 17 text -- lines of text to indent