summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2012-04-07 01:52:40 +0200
committerFlorian Bruhin <me@the-compiler.org>2012-04-07 01:52:40 +0200
commit00a039c856023532d079483a83269b3b2fdcbdea (patch)
tree4fdf9cde14866c65661fa537115576dd6e329ebd
parent0ab5c212c530d2d63af6294d6d16c3f8311b0800 (diff)
downloadschreimaschine-00a039c856023532d079483a83269b3b2fdcbdea.tar.gz
schreimaschine-00a039c856023532d079483a83269b3b2fdcbdea.zip
Fix CAPS output by resetting newc
-rw-r--r--src/tweetwriter.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tweetwriter.py b/src/tweetwriter.py
index 21e54e0..605cb7b 100644
--- a/src/tweetwriter.py
+++ b/src/tweetwriter.py
@@ -484,6 +484,7 @@ def encode(string):
twreplace[e] = '-'
for (i,c) in enumerate(string):
+ newc = ""
logging.debug("Index %r: Char %r / %r" % (i, c,a))
# Replace uppercase-chars with their lowercase-equivalents
if (c.isalpha() and c.isupper()):