commit | 76d8382fb1d1ff05db2be8738276c4e6cafbaf1e | [log] [tgz] |
---|---|---|
author | Dana Fried <dfried@chromium.org> | Wed Jan 09 22:24:30 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jan 09 22:24:30 2019 |
tree | 7f9fa86118b0baff9202924153cfc0b6649a200a | |
parent | 1a57af941a09fee6a46b965e77a2c2043997628b [diff] |
Trim whitespace during head and tail string elision. All string elision that removes the head or tail of a string will now remove any whitespace adjacent to the elision point as well. Furthermore, eliding the beginning of a string will never result in more unicode codepoints or bytes than was initially requested. Previously, it was possible to end up including a character with combining marks or a character whose codepoint was split by the target number of characters. This does affect filename elision. For example, eliding "foo bar.gif" to the width of 9 characters results in "foo….gif" rather than "foo ….gif", because the filename elision logic elides the tail of the base filename rather than eliding the middle of the full filename. Bug: 897967 Change-Id: I0e5e170b656c185a91de64ef042d01ec3920ceb8 Reviewed-on: https://chromium-review.googlesource.com/c/1387737 Reviewed-by: Xiyuan Xia <xiyuan@chromium.org> Reviewed-by: danakj <danakj@chromium.org> Reviewed-by: Michael Wasserman <msw@chromium.org> Commit-Queue: Dana Fried <dfried@chromium.org> Cr-Commit-Position: refs/heads/master@{#621337}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .