Skip to content
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

line wrap unpredictable in after|before_long_help on input containing ascii control sequences #4360

Closed
2 tasks done
hargut opened this issue Oct 8, 2022 · 0 comments
Closed
2 tasks done
Labels
C-bug Category: Updating dependencies

Comments

@hargut
Copy link
Contributor

hargut commented Oct 8, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Updating dependencies
Projects
None yet
Development

No branches or pull requests

2 participants