line wrap unpredictable in after|before_long_help on input containing ascii control sequences #4360
Closed
2 tasks done
Labels
C-bug
Category: Updating dependencies
Please complete the following tasks
Rust Version
rustc 1.63.0 (4b91a6ea7 2022-08-08)
Clap Version
4.0.10
Minimal reproducible code
Inline did not work, as code contains ```. Some parts of the sample are based on ockam source.
https://raw.githubusercontent.com/hargut/clap/fix/minimal-example/minimal_sample.rs
Steps to reproduce the bug with the above code
execute result with
--help
Actual Behaviour
line wraps are unpredictable, and too early when containing e.g. syntax highlighted text (ascii control sequences)
Expected Behaviour
correct line wraps
Additional Context
No response
Debug Output
No response
The text was updated successfully, but these errors were encountered: