Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat control characters as width 1, fixes #16 #19

Merged
merged 1 commit into from
Jun 24, 2024
Merged

Conversation

Aetf
Copy link
Owner

@Aetf Aetf commented Jun 24, 2024

This is consistent with how unicode-width handles string width vs char width.

See also unicode-rs/unicode-width#45

This is consistent with how unicode-width handles string width vs char
width.

See also unicode-rs/unicode-width#45
@Aetf Aetf merged commit 66e84b3 into master Jun 24, 2024
40 checks passed
@Aetf Aetf deleted the control-char branch June 24, 2024 01:12
@github-actions github-actions bot mentioned this pull request May 5, 2024
Cargo.toml Show resolved Hide resolved
Aetf pushed a commit that referenced this pull request Jul 9, 2024
## 🤖 New release
* `unicode-truncate`: 1.0.0 -> 1.1.0

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[1.1.0](v1.0.0...v1.1.0)
- 2024-07-08

### Added
- segment by graphemes
([#11](#11))

### Fixed
- *(deps)* update rust crate itertools to 0.13
([#20](#20))
- fixed typos in the `renovate.json`
([#17](#17))

### Other
- Removed unnessary debug-assertions setting
- Treat control characters as width 1, fixes
[#16](#16)
([#19](#19))
- tweak renovate configs
([#13](#13))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants