summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2012-04-07 01:43:52 +0200
committerFlorian Bruhin <me@the-compiler.org>2012-04-07 01:43:52 +0200
commit0ab5c212c530d2d63af6294d6d16c3f8311b0800 (patch)
tree0c8d1db64a13869355f47632af114784a5a2d84c
parentb9050d51f4c8608dc54033de400bf4e47baf5b2b (diff)
downloadschreimaschine-0ab5c212c530d2d63af6294d6d16c3f8311b0800.tar.gz
schreimaschine-0ab5c212c530d2d63af6294d6d16c3f8311b0800.zip
Pad dots with spaces
-rw-r--r--src/tweetwriter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tweetwriter.py b/src/tweetwriter.py
index 1831b92..21e54e0 100644
--- a/src/tweetwriter.py
+++ b/src/tweetwriter.py
@@ -519,11 +519,11 @@ def output(data):
(lastservice, lastuser, lasttext) = (None, None, None)
for (service, user, text) in data:
if service == lastservice:
- service = '.'
+ service = '.' + (' ' * (len(lastservice) - 1))
if user == lastuser:
- user = '.'
+ user = '.' + (' ' * (len(lastuser) - 1))
if text == lasttext:
- text = '.'
+ text = '.' + (' ' * (len(lasttext) - 1))
output = '%-12.12s | %-10.10s | %.200s' % (service, user, text)
serout = '%.30s / %.30s / %.500s\n' % (encode(service),
encode(user), encode(text))