fix: remove the unnecessary last \n

This commit is contained in:
nhamanasu 2023-07-26 19:49:51 +09:00
parent 5c74eb0b2e
commit e5055f0971

View file

@ -81,6 +81,8 @@ while True:
sys.stdout.flush() sys.stdout.flush()
answer += content answer += content
answer = answer.rstrip('\n')
# Write the answer to the temporary file # Write the answer to the temporary file
with open('$TEMPFILE', 'w') as f: with open('$TEMPFILE', 'w') as f:
f.write(answer) f.write(answer)