You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just noticed that the layout example looks weird:
$ cargo run --all-features --example layout
.------------------ Width: 46 -------------------.
| Memory safety without garbage collection. Co- |
| ncurrency without data races. Zero-cost a- |
| bstractions. |
.-------------------- Width: 49 --------------------.
| Memory safety without garbage collection. Concu- |
| rrency without data races. Zero-cost a- |
| bstractions. |
.-------------------- Width: 50 ---------------------.
| Memory safety without garbage collection. Concu- |
| rrency without data races. Zero-cost abstra- |
| ctions. |
This is with version 0.9.0. I think there has been a regression since I don't believe it looked like this in the past — notice how all the hyphenated words are broken in weird places.
The text was updated successfully, but these errors were encountered:
Before we did not take the width of the split into account when
hyphenating a word. This meant that all hyphenation was off by the
width of the whitespace (typically off by one when the split point was
a single space).
This has been broken since 4313d58 where I rewrote the splitting
algorithm to use Vec<Cow<str>> instead of Vec<String>. There is now a
test for this case.
Fixes#107.
Before we did not take the width of the split into account when
hyphenating a word. This meant that all hyphenation was off by the
width of the whitespace (typically off by one when the split point was
a single space).
This has been broken since 4313d58 where I rewrote the splitting
algorithm to use Vec<Cow<str>> instead of Vec<String>. There is now a
test for this case.
Fixes#107.
I just noticed that the layout example looks weird:
This is with version 0.9.0. I think there has been a regression since I don't believe it looked like this in the past — notice how all the hyphenated words are broken in weird places.
The text was updated successfully, but these errors were encountered: