$ chatgpt -p 'How many newlines in the following string: "
>
> "'
There are no newlines in the string " ". It consists of two spaces.
Indeed literal newlines are converted into spaces the actual message sent is:
{"role": "user", "content": "How many newlines in the following string: \" \""}
Current escaping has other limitations, I'm making a PR.
Indeed literal newlines are converted into spaces the actual message sent is:
{"role": "user", "content": "How many newlines in the following string: \" \""}
Current escaping has other limitations, I'm making a PR.