Changeset 6094 in josm for trunk/src/org
- Timestamp:
- 2013-07-31T01:12:19+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r6093 r6094 648 648 while (leadingWhite && start < end) { 649 649 char c = str.charAt(start); 650 leadingWhite = (Character.isWhitespace(c) || Character.isSpaceChar(c)); 650 // '\u200B' (ZERO WIDTH SPACE character) needs to be handled manually because of change in Unicode 6.0 (Java 7, see #8918) 651 leadingWhite = (Character.isWhitespace(c) || Character.isSpaceChar(c) || c == '\u200B'); 651 652 if (leadingWhite) { 652 653 start++; … … 656 657 while (trailingWhite && end > start+1) { 657 658 char c = str.charAt(end-1); 658 trailingWhite = (Character.isWhitespace(c) || Character.isSpaceChar(c) );659 trailingWhite = (Character.isWhitespace(c) || Character.isSpaceChar(c) || c == '\u200B'); 659 660 if (trailingWhite) { 660 661 end--;
Note:
See TracChangeset
for help on using the changeset viewer.