Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug with truncating newline (#950)
Fix bug with truncating newline This was followup promised in #943 Remaining concern Of course I love .rstrip for the simplicity of it, but there may be a case where this method receives multiple empty lines, and it is expected to keep them. Like, it gets foo\n\n\n, and it is expected to write foo\n\n. This whole thing is frustrating and confusing. This scenario is probably unlikely to happen because verbose events only write 1 line at a time anyway. There might still be a case I'm missing that's important, and in that case, this could be adjusted so that only 1 trailing newline is removed from stdout_chunk, instead of all newline characters. I expect that would be less performant, so if this satisfies the current needs I'd keep it. Reviewed-by: Alexander Sowitzki <dev@eqrx.net> Reviewed-by: David Shrewsbury <None> Reviewed-by: None <None>
- Loading branch information