diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index fe98ac7c..7ad2d2a0 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -66,9 +66,23 @@ jobs: | svgcleaner --indent 0 --stdout - \ > images/textwrap-${{ needs.setup.outputs.new-version }}.svg + - name: Update dependency graph + run: | + import fileinput, re, sys + + NAME = '${{ needs.setup.outputs.name }}' + NEW_VERSION = '${{ needs.setup.outputs.new-version }}' + + for line in fileinput.input(inplace=True): + sys.stdout.write( + re.sub(f'/images/{NAME}-.+\\.svg', + f'/images/{NAME}-{NEW_VERSION}.svg', line)) + shell: python3 {0} src/lib.rs + - name: Commit dependency graph run: | - git commit --all -m "Update dependency graph for version ${{ needs.setup.outputs.new-version }}" + git add images/textwrap-${{ needs.setup.outputs.new-version }}.svg src/lib.rs + git commit -m "Add dependency graph for version ${{ needs.setup.outputs.new-version }}" - name: Update changelog for version ${{ needs.setup.outputs.new-version }} id: changelog diff --git a/CHANGELOG.md b/CHANGELOG.md index b5b7defd..05d22afc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,24 @@ This file lists the most important changes made in each release of `textwrap`. +## Version 0.13.3 (2021-02-20) + +This release contains a bugfix for `indent` and improved handling of +emojis. We’ve also added a new function for formatting text in columns +and functions for reformatting already wrapped text. + +* [#276](https://github.com/mgeisler/textwrap/pull/276): Extend + `core::display_width` to handle emojis when the unicode-width Cargo + feature is disabled. +* [#279](https://github.com/mgeisler/textwrap/pull/279): Make `indent` + preserve existing newlines in the input string. +* [#281](https://github.com/mgeisler/textwrap/pull/281): Ensure all + `Options` fields have examples. +* [#282](https://github.com/mgeisler/textwrap/pull/282): Add a + `wrap_columns` function. +* [#294](https://github.com/mgeisler/textwrap/pull/294): Add new + `unfill` and `refill` functions. + ## Version 0.13.2 (2020-12-30) This release primarily makes all dependencies optional. This makes it diff --git a/Cargo.toml b/Cargo.toml index e1e66436..f2ce3746 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "textwrap" -version = "0.13.2" +version = "0.13.3" authors = ["Martin Geisler "] description = "Powerful library for word wrapping, indenting, and dedenting strings" documentation = "https://docs.rs/textwrap/" diff --git a/images/textwrap-0.13.3.svg b/images/textwrap-0.13.3.svg new file mode 100644 index 00000000..6243c2a1 --- /dev/null +++ b/images/textwrap-0.13.3.svg @@ -0,0 +1,17 @@ + + + + +textwrap + +smawk + + + + + +unicode-width + + + + diff --git a/src/lib.rs b/src/lib.rs index 5f251191..1781b63b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -124,7 +124,7 @@ //! The full dependency graph, where dashed lines indicate optional //! dependencies, is shown below: //! -//! +//! //! //! ## Default Features //! @@ -165,7 +165,7 @@ //! [terminal_size]: https://docs.rs/terminal_size/ //! [hyphenation]: https://docs.rs/hyphenation/ -#![doc(html_root_url = "https://docs.rs/textwrap/0.13.2")] +#![doc(html_root_url = "https://docs.rs/textwrap/0.13.3")] #![forbid(unsafe_code)] // See https://github.com/mgeisler/textwrap/issues/210 #![deny(missing_docs)] #![deny(missing_debug_implementations)]