Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Trim output from monitored process before printing #2782

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

DrChat
Copy link
Member

@DrChat DrChat commented Jan 27, 2023

Summary of the Pull Request

This simply trims whitespace from monitored streams before printing their output.
This fixes the common case where two newlines are printed for every line logged from a child process.

The reason this occurred in the first place is because read_until will read a line up to (and including) the delimiter and/or EOF.

@DrChat DrChat force-pushed the user/jusmoore/stream_newlines branch from 82b808e to d09d4b7 Compare January 27, 2023 17:52
@Porges Porges enabled auto-merge (squash) February 1, 2023 01:47
@Porges Porges force-pushed the user/jusmoore/stream_newlines branch from d09d4b7 to 18a5023 Compare February 1, 2023 01:47
@Porges Porges merged commit f209c0b into microsoft:main Feb 1, 2023
@AdamL-Microsoft AdamL-Microsoft mentioned this pull request Feb 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants