summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2012-04-07 02:46:25 +0200
committerFlorian Bruhin <me@the-compiler.org>2012-04-07 02:46:25 +0200
commit50ef5465bbee29f040959499a95892b15c2dacd1 (patch)
tree3b80c79b68a55af43c2e150544c773ff47239b1e
parentdb0ab2165ecace0201a41f98223d7bd8d56c4878 (diff)
downloadschreimaschine-50ef5465bbee29f040959499a95892b15c2dacd1.tar.gz
schreimaschine-50ef5465bbee29f040959499a95892b15c2dacd1.zip
newline++, use - instead of .
-rw-r--r--src/tweetwriter.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tweetwriter.py b/src/tweetwriter.py
index 89b03a1..7779fcf 100644
--- a/src/tweetwriter.py
+++ b/src/tweetwriter.py
@@ -520,17 +520,17 @@ def output(data):
(lastservice, lastuser, lasttext) = (None, None, None)
for (service, user, text) in data:
if service == lastservice:
- service = '.' + (' ' * (len(lastservice) - 1))
+ service = '-.' + (' ' * (len(lastservice) - 1))
if user == lastuser:
- user = '.' + (' ' * (len(lastuser) - 1))
+ user = '-' + (' ' * (len(lastuser) - 1))
if text == lasttext:
- text = '.' + (' ' * (len(lasttext) - 1))
+ text = '-' + (' ' * (len(lasttext) - 1))
output = '%-12.12s | %-10.10s | %.200s' % (service, user, text)
serout = '%.30s / %.30s / %.500s\n' % (encode(service),
encode(user), encode(text))
print("[SCR] " + output)
printser(serout)
- ser.write("\n".encode('ASCII')) # empty line
+ ser.write("\n\n".encode('ASCII')) # empty line
print()
(lastservice, lastuser, lasttext) = (service, user, text)
#print('------------------')