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
Non-breaking spaces are (obviously) treated as whitespace characters
by the String::split_whitespace method, which meant that we would
happily break words on such spaces. We now use String::split instead
with our own predicate.
Somewhat surprisingly, using String::split is about 15-20% faster than
using String::split_whitespace, so we even get a performance boost out
of this new code.
Fixes#39.
According to the comment on #28, we treat non-breaking spaces as normal whitespace and break on it. We should probably not do that :-)
The text was updated successfully, but these errors were encountered: