-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a breaking change which simplifies and streamlines the API in several ways: * Instead of having both Wrapper::wrap and a top-level wrap function, we now only have the wrap function. This should simplify things a little since there is now just one way to use the API. * The Wrapper struct has been turned into an Options struct, which carries all the configuration settings. * The API of the wrap and fill functions have changed in a backwards compatible fashion. They still take a string and a width: textwrap::fill("some string", 10); * In addition to an usize width, you can now also pass Options as the second argument: textwrap::fill("some string", Options::new(10).break_words(false));
- Loading branch information
Showing
7 changed files
with
363 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.