From 3763eeec4a47e4a3778e76d47f6e33a79285e53e Mon Sep 17 00:00:00 2001 From: quadrismegistus Date: Fri, 18 Sep 2020 08:54:22 +0100 Subject: [PATCH] komrade update! --- komrade/cli/cli.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/komrade/cli/cli.py b/komrade/cli/cli.py index 51f088b..87df64e 100644 --- a/komrade/cli/cli.py +++ b/komrade/cli/cli.py @@ -405,7 +405,11 @@ class CLI(Logger): self.stat('Not sending. No text entered.') return if len(msg_s)>maxlen: - self.stat(f'Not sending. Message is {len(msg_s)-maxlen} over the character limit of {maxlen}.\n\nThe message you wanted to send was (in case you want to copy/paste it to edit it):\n\n{msg_s}') + msg1=f'Not sending. Message is {len(msg_s)-maxlen} characters over the character limit of {maxlen}.' + msg2='The message you wanted to send is copied below (in case you want to copy/paste it to edit it):', + msg3='The message you wanted to send is copied above (in case you want to copy/paste it to edit it).' + err = f'{msg1}\n\n{msg2}\n\n{msg_s}\n\n{msg3' + self.stat(err) return self.log(f'Post written: {msg_s}')