summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pastepy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pastepy.py b/pastepy.py
index 67c2f44..f85b4fa 100644
--- a/pastepy.py
+++ b/pastepy.py
@@ -83,7 +83,7 @@ class Paste(object):
nick = mp['nick'].value.decode('utf8') or None
syntax = mp['syntax'].value.decode('utf8') or None
title = mp['title'].value.decode('utf8') or None
- text = mp['text'].value.decode('utf8') or None
+ text = mp['text'].value.decode('utf8').replace('\r', '') or None
hash = ''.join(random.choice(base62_alphabet) for x in xrange(5))