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
Wrap long lines nicely #22
Conversation
89d5a8a
to
c55453b
Compare
Did this in the context of [1], but asked Nikolai to open a separate bug. I was annoyed by the output for years. Better late than never, I guess/hope. |
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.
LGTM
c55453b
to
b11fa1d
Compare
Rebased |
b11fa1d
to
c3c2d0d
Compare
Updated test_note to include a long URL. This should fail. Will then fix with a next update. |
9361492
to
6339e0e
Compare
If dialog.note is passed long lines of text, it prepends some whitespace to each line to make output "nice", but does not try to break it, thus letting it wrap "normally" which looks ugly. Instead, break lines according to terminal width and prepend the same whitespace to each part. Change-Id: I4706323a95103eff3257507dd1bd0fdbaa59cd74 Signed-off-by: Yedidyah Bar David <didi@redhat.com>
6339e0e
to
722a7a8
Compare
Add a plugin to output an arbitrary note. Useful for testing a recent patch to wrap note texts. Include a long URL in the note, and verify that it's output as-is, unwrapped. Change-Id: Id98433880c7bdf1cea3cfc80cc1cbbe59715fecf Signed-off-by: Yedidyah Bar David <didi@redhat.com>
722a7a8
to
98498d7
Compare
Tested engine-setup on a wide (190 column) terminal and it looks almost the same. Tested it on a 80-column terminal and I think it's an improvement, even if not perfect - we might want to further patch setup code. Merging, anyway. |
No description provided.