fix: remove the unnecessary last \n
This commit is contained in:
parent
5c74eb0b2e
commit
e5055f0971
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue