-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] fix progress bar messing output in section when there is an EOL #59874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8283b46
to
c93d5e0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the proposed fix, it works as expected with an ending PHP_EOL
, but it still remove some lines when the ending PHP_EOL
is not present, at least as long as the $message
is an empty string.
9be3790
to
ad6661e
Compare
Thanks for the insight @cedric-anne i added a test and changed the fix to make it work in both cases |
I still have the issue if I use the following format: |
ad6661e
to
1edcaa1
Compare
Should be good, it now checks if last line is an empty message without formatting, also added a test case for your use case |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally
c85392c
to
2a3c28c
Compare
2a3c28c
to
68b4c1b
Compare
68b4c1b
to
3f9fa83
Compare
3f9fa83
to
cae2241
Compare
Thank you @joelwurtz. |
This fix the progress bar making the output erase previous line when there is an EOL at the end of it