word-wrap v0.3.1 Release Notes

  • ๐Ÿ› Bug fixes:

    • Fix inconsistent long token breaking (long tokens anywhere but the beginning of a line)

    0.3

    API changes:

    • Added the breakLongWords setting to WrapSettings. This setting makes it possible to cause words to get broken up over multiple lines if their lengths exceed the wrapping width.

    0.2

    API changes:

    • Added a WrapSettings data type for controlling wrapping behavior.
    • All functions now require a WrapSettings.
    • Added defaultWrapSettings for prior behavior.
    • Wrap settings now include a setting to control how indentation is preserved in broken lines.

    ๐Ÿ› Bug fixes:

    • Lines with only whitespace are preserved as empty lines.