write a test cases to ensure it doesn't happen again.
Maybe, there are some cases where we have to output as "hello \n world" in double quoted mode. If we can't find a reasonably safe way to output in folded style, then it's safer to fallback to double quoted mode.
But ideally, we won't have to fallback in all non-trivial cases.
Example
We need to:
Maybe, there are some cases where we have to output as
"hello \n world"
in double quoted mode. If we can't find a reasonably safe way to output in folded style, then it's safer to fallback to double quoted mode.But ideally, we won't have to fallback in all non-trivial cases.