diff 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
line wrap: on
line diff
--- a/textshaper/indent.py	Sun Feb 23 14:29:44 2014 -0800
+++ b/textshaper/indent.py	Sun Feb 23 14:48:40 2014 -0800
@@ -7,7 +7,9 @@
 import argparse
 import os
 import sys
+from .decorator import lines
 
+@lines
 def indent(text, indentation=4, space=' ', strict=False):
     """
     indent a block of text