-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Use extended brackets instead of box-drawing characters in log messages #33898
base: master
Are you sure you want to change the base?
Conversation
An alternative to make the printing of logs more consistent could be to go the other way and replace
But honestly I prefer the first approach to this one. |
Pinging the author and reviewers of #25111: @fredrikekre, @c42f and @KristofferC. |
IIRC we tried this but those characters did not render nicely on some systems. Maybe it was some other characters we tried though. |
Ah, I feared that could happen. Alas, it's a font issue that we can't fix on Julia's side. 😞 Do you guys think it could be worth trying the alternate consolidation approach I mentioned above (or some other that may have been discussed somewhere)? |
Just wanted to note that the box drawing characters have special support to look better on iTerm, so if we switch, somebody should validate that the alternative works there also. |
I'm ok with a change of characters in principle, but I also think there's a high bar to pass in compatibility. If they don't render correctly out of the box on some systems I'd not want to change this. I'm somewhat surprised the box drawing characters have worked out as well as they have TBH. Originally I had ascii for that reason; it's not pretty but it does work everywhere. |
This PR proposes using extended brackets instead of box-drawing characters in multi-line log messages. The box-drawing characters were first introduced in #25111.
This change improves formatting of multi-line log messages in two ways:
[
)┌
and└
have the horizontal section in the middle of the line, rather than at the top and the bottom like[
.With this change, the box drawing characters can now produce a left-flanking box that actually "wraps" the log message, (thus matching the style of the single-line log messages), rather than be slightly shorter than the text.
Current:
Proposed: