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

Fix truncated href tags #342

Merged
merged 3 commits into from
May 12, 2024
Merged

Conversation

ItsNickBarry
Copy link
Contributor

closes #338

This is a bad solution, and I understand if you'd prefer not to merge it.

@speedytwenty
Copy link
Collaborator

A little kludgy, but it'll blend right in!


table.push([{ content: 'looooooooooooong', href }]);

expect(table.toString().includes('\x1B]8;;\x07')).toEqual(true);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it'd be better to test the full output here. Concatenating the link closure incorrectly would still lead to a passing test.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't do this initially because the string-literal table doesn't look as nice as the ones in the other issue tests. But I made the change and it seems fine.

@ItsNickBarry
Copy link
Contributor Author

Okay to merge (and publish)?

@speedytwenty
Copy link
Collaborator

Okay to merge (and publish)?

Looks good. Fell off my radar. I'll get a new release out shortly.

@speedytwenty speedytwenty merged commit c58af14 into cli-table:master May 12, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

href breaks when content is truncated
2 participants