From 5bbf27357d1421e68aee24dddd7b85ac86fcb1cc Mon Sep 17 00:00:00 2001 From: poka Date: Thu, 3 Dec 2020 02:38:46 +0100 Subject: [PATCH] Remove blank line after title --- jaklis.py | 2 +- lib/cesium.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/jaklis.py b/jaklis.py index d5cdcfb..bd34372 100755 --- a/jaklis.py +++ b/jaklis.py @@ -105,7 +105,7 @@ if sys.argv[1] == "read": elif sys.argv[1] == "send": if args.fichier: with open(args.fichier, 'r') as f: - titre = f.readline() + titre = f.readline().replace('\n','') msg = ''.join(f.read().splitlines(True)[0:]) elif args.titre and args.message: titre = args.titre diff --git a/lib/cesium.py b/lib/cesium.py index 8ab331a..e9d4978 100644 --- a/lib/cesium.py +++ b/lib/cesium.py @@ -164,8 +164,6 @@ class ReadFromCesium: data = json.dumps(data, indent=2) return data - - def read(self, nbrMsg, outbox, isJSON): jsonMsg = self.sendDocument(nbrMsg, outbox)