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-wrapping options break coloration #192

Open
donmccurdy opened this issue Jul 21, 2020 · 0 comments
Open

Line-wrapping options break coloration #192

donmccurdy opened this issue Jul 21, 2020 · 0 comments
Assignees
Labels

Comments

@donmccurdy
Copy link
Contributor

Describe the bug
When the synopsis of an option is long enough to wrap to the second line, it breaks coloration by extending its color to the description in the next column:

Screen Shot 2020-07-20 at 11 21 32 PM

To Reproduce
Any sufficiently long synopsis should show the issue:

	.option(
		'--endpoint-rdo-threshold <endpoint_rdo_threshold>',
		'Set endpoint and selector RDO quality threshold. Lower'
		+ ' is higher quality but less quality per output bit (try 1.0-3.0).'
		+ ' Overrides --quality.',
		{validator: program.NUMERIC}
	)

Expected behavior
I would expect the description text to keep the body color regardless of the length of the synopsis.

Actual behavior
Synopsis color bleeds into description text, if synopsis is long enough that it needs a linebreak.

Environment informations (please complete the following information):

  • OS: macOS
  • OS version: 10.15.5
  • Shell: zsh
  • Caporal version: 2.0.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants