Simatwa / python-tgpt

AI Chat in Terminal + Package + REST-API
https://python-tgpt.onrender.com
MIT License
106 stars 15 forks source link

Do not force-wrap text when output to file (or piping) #42

Closed johnd0e closed 6 months ago

johnd0e commented 6 months ago

Describe the bug When text is output to a file, it is always wrapped at position 79. Lines shorter than 79 characters are padded with spaces until they reach this length.

To Reproduce

pytgpt generate --quiet --disable-conversation "Write a short story">output.md

Expected behavior I expect that the output should not be reformatted/padded in any way.

Simatwa commented 6 months ago

On it.