do not strip leading whitespaces
authorMichael Gebetsroither <michael@mgeb.org>
Thu, 23 Dec 2010 10:04:42 +0000 (11:04 +0100)
committerMichael Gebetsroither <michael@mgeb.org>
Thu, 23 Dec 2010 10:04:42 +0000 (11:04 +0100)
grml-paste

index fa42dbd..cbd368e 100755 (executable)
@@ -59,7 +59,7 @@ class Action(object):
         o = self.opts_
         code = self.args_
         if len(self.args_) == 0:
-            code = [ i.strip() for i in sys.stdin.readlines() ]
+            code = [ i.rstrip() for i in sys.stdin.readlines() ]
         code = '\n'.join(code)
         result = self._callProxy(lambda s: s.paste.addPaste(code, o.name, o.expire * 3600, o.lang, o.private),
                             server)