changeset 704:6327c66e5f46

moved to http://k0s.org/hg/TextShaper
author Jeff Hammel <k0scist@gmail.com>
date Tue, 02 Sep 2014 21:01:55 -0700
parents 8466deea2eaf
children 9afe2373aaa2
files python/onelineit.py
diffstat 1 files changed, 0 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/python/onelineit.py	Tue Sep 02 13:16:38 2014 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#!/usr/bin/env python
-
-def onelineit(string):
-    string = string.split('\n')
-    string = [ i.strip() or '\n' for i in string ]
-    string = ' '.join(string)
-    string = string.split('\n')
-    string = [ i.strip() for i in string if i.strip() ]
-
-    return '\n\n'.join(string)
-
-if __name__ == '__main__':
-    import sys    
-    print onelineit(sys.stdin.read())