-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Use extended brackets instead of box-drawing characters in log messages #33898
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
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 has had no activity for five years+, so I'll close it as stale. @waldyrious If you're still interested in working on this PR, let me know, and I can re-open it. |
|
I'd be happy to drive this to the finish line. I believe the main concern was the font rendering issues, right? Perhaps @KristofferC can re-check whether the issues he noticed last time are still present? And of course, if anyone of the commenters who expressed this concern could also check on their systems, that would be great to give us reasonable confidence that we can move ahead with this. If OTOH the rendering issues persist, I must regrettably agree to close the PR. |
|
@waldyrious Can you rebase against the latest Julia master, and fix the merge conflicts? That will give us new PR builds for use with Juliaup, and then folks can test this out again on a variety of systems. |
6c53d82 to
32d0b45
Compare
|
@DilumAluthge I've rebased the branch and fixed the conflicts. |
|
Looks like there are some test failures in |

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: