diff options
author | EuAndreh <eu@euandre.org> | 2023-09-16 18:15:19 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-03-20 15:58:40 -0300 |
commit | e840707b3c8d7c488bcd39606163c84f97bc29b1 (patch) | |
tree | a13dc8f7ef56c3304d94fb1e4888b65cf40ab073 /squeeze.py | |
parent | Add 2014-04-27 version (diff) | |
download | agahu-e840707b3c8d7c488bcd39606163c84f97bc29b1.tar.gz agahu-e840707b3c8d7c488bcd39606163c84f97bc29b1.tar.xz |
Remove support files
Diffstat (limited to 'squeeze.py')
-rw-r--r-- | squeeze.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/squeeze.py b/squeeze.py deleted file mode 100644 index ce56a86..0000000 --- a/squeeze.py +++ /dev/null @@ -1,29 +0,0 @@ -import re -import sys - -output = '' - -while True: - line = sys.stdin.readline() - if not line: break - if line[0] == '#': - if output: - print output - output = '' - print line.strip() - else: - x = re.findall('\w+|\W',line) - for u in x: - if not u.isspace(): - if len(output) + len(u) > 140: - print output - output = '' - if (re.match('\w',output[-1:]) and re.match('\w',u[:1])) or (output[-1:] == '=' and u[:1] == '-'): - if len(output) + 1 + len(u) > 140: - print output - output = '' - else: - output += ' ' - output += u - -print output |