changeset 28:fd626585c299

test decorator and fix errors
author Jeff Hammel <k0scist@gmail.com>
date Sun, 23 Feb 2014 14:27:42 -0800
parents 4aba57a33376
children 2794327d8c67
files textshaper/decorator.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/textshaper/decorator.py	Sun Feb 23 13:54:18 2014 -0800
+++ b/textshaper/decorator.py	Sun Feb 23 14:27:42 2014 -0800
@@ -21,7 +21,7 @@
         if isinstance(text, string):
             is_string = True
             text = text.splitlines()
-        retval = self.function(*args, **kwargs)
+        retval = self.function(text, *args, **kwargs)
         if is_string:
             return self.line_separator.join(retval)
         return retval