Skip to content

Commit

Permalink
Merge pull request #295 from mgeisler/release-0.13.3
Browse files Browse the repository at this point in the history
Release 0.13.3
  • Loading branch information
mgeisler committed Feb 20, 2021
2 parents 62e0d00 + 8928d28 commit ad143f1
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 4 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "textwrap"
version = "0.13.2"
version = "0.13.3"
authors = ["Martin Geisler <martin@geisler.net>"]
description = "Powerful library for word wrapping, indenting, and dedenting strings"
documentation = "https://docs.rs/textwrap/"
Expand Down
17 changes: 17 additions & 0 deletions images/textwrap-0.13.3.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
//! The full dependency graph, where dashed lines indicate optional
//! dependencies, is shown below:
//!
//! <img src="https://raw.githubusercontent.com/mgeisler/textwrap/master/images/textwrap-0.13.2.svg">
//! <img src="https://raw.githubusercontent.com/mgeisler/textwrap/master/images/textwrap-0.13.3.svg">
//!
//! ## Default Features
//!
Expand Down Expand Up @@ -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)]
Expand Down

0 comments on commit ad143f1

Please sign in to comment.