Skip to content

Commit ad32b2c

Browse files
authored
Merge pull request #47 from uutils/fix-readme
Fix width calculation crate mentioned in README
2 parents 2046060 + 9f39566 commit ad32b2c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,10 @@ nine ten eleven twelve
9898
## Width of grid cells
9999

100100
This library calculates the width of strings as displayed in the terminal using
101-
the [`textwrap`][textwrap] library (with the [`display_width`][display_width] function).
102-
This takes into account the width of characters and ignores ANSI codes.
101+
the [`ansi-width`][ansi-width] crate. This takes into account the width of
102+
characters and ignores ANSI codes.
103103

104104
The width calculation is currently not configurable. If you have a use-case for
105105
which this calculation is wrong, please open an issue.
106106

107-
[textwrap]: https://docs.rs/textwrap/latest/textwrap/index.html
108-
[display_width]: https://docs.rs/textwrap/latest/textwrap/core/fn.display_width.html
107+
[ansi-width]: https://docs.rs/ansi-width

0 commit comments

Comments
 (0)