Commit 26c38d230f2cd431ee2a88435e27b8a8c7ec11f9

Authored by Andrew Buss
1 parent 07a06ca9da

super high quality fix, totally good forever

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

scripts/FeedController.js View file @ 26c38d2
... ... @@ -103,6 +103,9 @@
103 103 while (text[text.length - 1 - rightspaces] == ' ' || text[text.length - 1 - rightspaces] == '\xa0') rightspaces++;
104 104 if (leftspaces != text.length) blanks.push([i + leftspaces, i + text.length - rightspaces]);
105 105 i += text.length;
  106 + } else if (!node.data) {
  107 + console.log('weird node', node);
  108 + i += $(node).text().length;
106 109 } else {
107 110 i += node.data.length;
108 111 }