Skip to content

Commit

Permalink
Support line breaks (\n) when setting status
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored May 4, 2017
1 parent d552483 commit 0a7f1b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions twitter/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ def __call__(self, twitter, options):
statusTxt = (" ".join(options['extra_args'])
if options['extra_args']
else str(input("message: ")))
statusTxt = statusTxt.replace('\\n', '\n')
replies = []
ptr = re.compile("@[\w_]+")
while statusTxt:
Expand Down

0 comments on commit 0a7f1b5

Please sign in to comment.