summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
14f922a)
(cherry picked from commit
0bbec0d)
parent.contents().some(function(n) {
return move(n, newNode);
});
parent.contents().some(function(n) {
return move(n, newNode);
});
+ if(newNodes.second.contents()[0].getText().length === 0) {
+ newNodes.second.detach();
+ newNodes.second = parent;
+ emptyText = newNodes.second.append({text: '\u200b'}); // why? why is ZWS needed here?
+ }
}
return _.extend(newNodes, {emptyText: emptyText});
}
return _.extend(newNodes, {emptyText: emptyText});