You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand that ANSI wrapping support was added in #140. However adding ANSI codes to the example string from the README produces unexpected line wrapping:
fn main() {
let text = "\u{001b}[31mtextwrap\u{001b}[0m: an efficient and powerful library for wrapping text.";
println!("{}", textwrap::fill(text, 28));
}
produces:
textwrap: an
efficient and powerful
library for wrapping text.
expected:
textwrap: an efficient
and powerful library for
wrapping text.
The text was updated successfully, but these errors were encountered:
Hello!
I understand that ANSI wrapping support was added in #140. However adding ANSI codes to the example string from the README produces unexpected line wrapping:
produces:
expected:
The text was updated successfully, but these errors were encountered: