# HG changeset patch # User Jeff Hammel # Date 1393194462 28800 # Node ID fd626585c299c2f152af6bacec0a43e03b304a62 # Parent 4aba57a33376557adf1ca13e8118506bbaa2720c test decorator and fix errors diff -r 4aba57a33376 -r fd626585c299 textshaper/decorator.py --- 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