diff textshaper/indent.py @ 26:c23782a7b7ba

more hookups, yo
author Jeff Hammel <k0scist@gmail.com>
date Sun, 23 Feb 2014 11:41:37 -0800
parents 0930c6884f8a
children 23616399f36c
line wrap: on
line diff
--- a/textshaper/indent.py	Sun Feb 23 10:59:10 2014 -0800
+++ b/textshaper/indent.py	Sun Feb 23 11:41:37 2014 -0800
@@ -48,6 +48,7 @@
     parser.add_argument('-o', '--output', dest='output',
                         help="output file or stdout if not given")
 
+
 def main(args=sys.argv[1:]):
 
     # parse command line
@@ -60,7 +61,7 @@
     for f in _files():
 
         # indent the text
-        indented = indent(f)
+        indented = '\n'.join(indent(f))
 
         # append to output
         if options.output: