When wrapping lines of text, limit the maximum width.
- Limit the maximum width of text columns to improve readability. - Fixes #239.
This commit is contained in:
parent
9cefdf6b6a
commit
e9b502a258
@ -44,6 +44,9 @@ fn options() -> textwrap::Options<'static> {
|
||||
let width =
|
||||
terminal_size::terminal_size().map(|(w, _h)| w.0)
|
||||
.unwrap_or(80)
|
||||
// To improve readability limit the width of the text
|
||||
// columns.
|
||||
.min(100)
|
||||
.into();
|
||||
|
||||
textwrap::Options::new(width)
|
||||
|
Loading…
x
Reference in New Issue
Block a user