Remove blank line after title

This commit is contained in:
poka 2020-12-03 02:38:46 +01:00
parent 29dc7486bd
commit 5bbf27357d
2 changed files with 1 additions and 3 deletions

View File

@ -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

View File

@ -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)