From d3494a6edb5d97aa790fe29410caf1516c90b73b Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Sat, 20 Feb 2021 19:22:17 +0100 Subject: [PATCH 1/4] Update dependency graph when making a new release I was sure I had already add such code, but apparently not. --- .github/workflows/prepare-release.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 From 5823c6f1baded5f370b1417ff42a2d8958cae284 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Sat, 20 Feb 2021 18:38:29 +0000 Subject: [PATCH 2/4] Add dependency graph for version 0.13.3 --- images/textwrap-0.13.3.svg | 17 +++++++++++++++++ src/lib.rs | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 images/textwrap-0.13.3.svg 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..83e7c1f0 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 //! From c0a521af281138bf75e1e0ea7d05f9b86ca0d034 Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Sat, 20 Feb 2021 18:38:29 +0000 Subject: [PATCH 3/4] Update changelog for version 0.13.3 --- CHANGELOG.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 From 8928d282b8106746db4cf86be03dc314da733a8c Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Sat, 20 Feb 2021 18:40:03 +0000 Subject: [PATCH 4/4] Bump version to 0.13.3 --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/src/lib.rs b/src/lib.rs index 83e7c1f0..1781b63b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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)]