Skip to content

Bump textwrap from 0.11.0 to 0.13.1 - #19

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/cargo/textwrap-0.13.1
Closed

Bump textwrap from 0.11.0 to 0.13.1#19
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/cargo/textwrap-0.13.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 11, 2020

Copy link
Copy Markdown

Bumps textwrap from 0.11.0 to 0.13.1.

Release notes

Sourced from textwrap's releases.

textwrap-0.13.1

Version 0.13.1 (2020-12-10)

This is a bugfix release which fixed the width computations for colored text.

  • #245: Support deleting a word with Ctrl-Backspace in the interactive demo
  • #246: Show build type (debug/release) in interactive demo
  • #249: Correctly compute width while skipping over ANSI escape sequences

textwrap-0.13.0

This is a major release which rewrites the core logic, adds many new features, and fixes a couple of bugs. Most programs which use textwrap stays the same, incompatibilities and upgrade notes are given below.

Clone the repository and run the following to explore the new features in an interactive demo (Linux only):

$ cargo run --example interactive --all-features

Bug Fixes

Rewritten core wrapping algorithm

  • #221: Reformulate wrapping in terms of words with whitespace and penalties.

The core wrapping algorithm has been completely rewritten. This fixed bugs and simplified the code, while also making it possible to use textwrap outside the context of the terminal.

As part of this, trailing whitespace is now discarded consistently from wrapped lines. Before we would inconsistently remove whitespace at the end of wrapped lines, except for the last. Leading whitespace is still preserved.

New Features

Optimal-fit wrapping

  • #234: Introduce wrapping using an optimal-fit algorithm.

This release adds support for new wrapping algorithm which finds a globally optimal set of line breaks, taking certain penalties into account. As an example, the old algorithm would produce

"To be, or"
"not to be:"
"that is"
"the"
"question"

Notice how the fourth line with “the” is very short. The new algorithm shortens the previous lines slightly to produce fewer short lines:

"To be,"
"or not to"
"be: that"
"is the"
"question"

... (truncated)

Changelog

Sourced from textwrap's changelog.

Version 0.13.1 (2020-12-10)

This is a bugfix release which fixed the width computations for colored text.

  • #245: Support deleting a word with Ctrl-Backspace in the interactive demo
  • #246: Show build type (debug/release) in interactive demo
  • #249: Correctly compute width while skipping over ANSI escape sequences

Version 0.13.0 (2020-12-05)

This is a major release which rewrites the core logic, adds many new features, and fixes a couple of bugs. Most programs which use textwrap stays the same, incompatibilities and upgrade notes are given below.

Clone the repository and run the following to explore the new features in an interactive demo (Linux only):

$ cargo run --example interactive --all-features

Bug Fixes

Rewritten core wrapping algorithm

  • #221: Reformulate wrapping in terms of words with whitespace and penalties.

The core wrapping algorithm has been completely rewritten. This fixed bugs and simplified the code, while also making it possible to use textwrap outside the context of the terminal.

As part of this, trailing whitespace is now discarded consistently from wrapped lines. Before we would inconsistently remove whitespace at the end of wrapped lines, except for the last. Leading whitespace is still preserved.

New Features

Optimal-fit wrapping

  • #234: Introduce wrapping using an optimal-fit algorithm.

This release adds support for new wrapping algorithm which finds a

... (truncated)

Commits
  • 45dc705 Merge pull request #251 from mgeisler/release-0.13.1
  • 7b7e45c Bump version to 0.13.1
  • feef8b4 Update changelog for version 0.13.1
  • 0cbb9a8 Align changelog dates with prepare-release
  • 77c0485 Avoid crash in toml-patch
  • 7b069df Update to @actions/github-script v3
  • e4a9473 Fix syntax in prepare-release workflow
  • 12954d0 Merge pull request #250 from mgeisler/publish-workflow
  • 894af1a Introduce GitHub actions to publish new releases
  • e8ad275 Merge pull request #249 from mgeisler/fix-wrapping-colored-text
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [textwrap](https://github.com/mgeisler/textwrap) from 0.11.0 to 0.13.1.
- [Release notes](https://github.com/mgeisler/textwrap/releases)
- [Changelog](https://github.com/mgeisler/textwrap/blob/master/CHANGELOG.md)
- [Commits](mgeisler/textwrap@0.11.0...0.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Dec 11, 2020
@dependabot @github

dependabot Bot commented on behalf of github Dec 31, 2020

Copy link
Copy Markdown
Author

Superseded by #21.

@dependabot dependabot Bot closed this Dec 31, 2020
@dependabot
dependabot Bot deleted the dependabot/cargo/textwrap-0.13.1 branch December 31, 2020 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants