Skip to content

Commit

Permalink
Merge pull request #33 from DrMarcII/master
Browse files Browse the repository at this point in the history
Fix bug in string normalization code.
  • Loading branch information
DrMarcII committed Feb 25, 2015
2 parents eabb9fd + 45e84b0 commit ae8b696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dart/lib/html.dart
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ String _normalize(String string) {
if (char.contains(_nonBreaking)) {
if (addWS) {
buffer.write(' ');
addWS = false;
}
if (char == '\xa0') {
buffer.write(' ');
Expand Down
2 changes: 1 addition & 1 deletion dart/test/pageloader_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ void runTests() {
expect(page.textArea.attributes['value'], '');
});

solo_test('nbsp in text', () {
test('nbsp in text', () {
PageForNbspTest page = loader.getInstance(PageForNbspTest);
expect(page.span.visibleText, ' ');
expect(page.span.innerText, '');
Expand Down

0 comments on commit ae8b696

Please sign in to comment.