Skip to content

textwrap-0.5.0

Compare
Choose a tag to compare
@mgeisler mgeisler released this 24 Nov 08:49
· 928 commits to master since this release

Version 0.5.0 has breaking API changes. However, this only affects code using the hyphenation feature. The feature is now optional, so
you will first need to enable the hyphenation feature as described above. Afterwards, please change your code from

wrapper.corpus = Some(&corpus);

to

wrapper.splitter = Box::new(corpus);

Other changes include optimizations, so version 0.5.0 is roughly 10-15% faster than version 0.4.0.

  • Fixed #19: Add support for finding terminal size.
  • Fixed #25: Handle words longer than self.width.
  • Fixed #26: Support custom indentation.
  • Fixed #36: Support building without hyphenation.
  • Fixed #39: Respect non-breaking spaces.