textwrap v0.5.0 Release Notes

Release Date: 2017-05-15 // over 3 years ago
  • ๐Ÿ’ฅ 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][issue-19]: Add support for finding terminal size.
    • ๐Ÿ›  Fixed [#25][issue-25]: Handle words longer than self.width.
    • ๐Ÿ›  Fixed [#26][issue-26]: Support custom indentation.
    • ๐Ÿ›  Fixed [#36][issue-36]: Support building without hyphenation.
    • ๐Ÿ›  Fixed [#39][issue-39]: Respect non-breaking spaces.