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

Support text wrapping #46

Merged
merged 5 commits into from May 6, 2020
Merged

Support text wrapping #46

merged 5 commits into from May 6, 2020

Conversation

lukaszmn
Copy link
Contributor

@lukaszmn lukaszmn commented Dec 28, 2019

I added support for wrapping text using wrap-ansi. It seems to be well tested and takes into consideration both ANSI codes and Unicode characters.

This should fix #16.

Closes #36

@sindresorhus
Copy link
Owner

Can you add some various example to https://github.com/sindresorhus/boxen/blob/master/example.js with text wrapping? So we can easily manually verify it works and also show the user that it works great.

index.js Outdated Show resolved Hide resolved
index.js Outdated Show resolved Hide resolved
test.js Outdated Show resolved Hide resolved
test.js Outdated Show resolved Hide resolved
@lukaszmn
Copy link
Contributor Author

Sorry, I had to rebase to include changes from your branch. Besides I discovered a bug with alignment and fixed it and did all the changes you requested.

@sindresorhus sindresorhus merged commit 14fd5c4 into sindresorhus:master May 6, 2020
@sindresorhus
Copy link
Owner

Looks good now. Thank you 👍

@sindresorhus
Copy link
Owner

Hmm, a test is failing when merged to master: https://travis-ci.com/github/sindresorhus/boxen/jobs/328590367 Could you take a look at it?

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.

Support text wrapping
2 participants