Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #29242 from mephisto41/bug1146831
Browse files Browse the repository at this point in the history
Bug 1146831 - Don't create text node if line is empty. r=jrburke
  • Loading branch information
jrburke committed Mar 31, 2015
2 parents 95ffe46 + 72fb61f commit 9fcf831
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/email/js/cards/editor_mixins.js
Expand Up @@ -17,7 +17,10 @@ define(function(require) {
if (i) {
frag.appendChild(document.createElement('br'));
}
frag.appendChild(document.createTextNode(lines[i]));

if (lines[i]) {
frag.appendChild(document.createTextNode(lines[i]));
}
}
this._editorNode.appendChild(frag);
},
Expand Down

0 comments on commit 9fcf831

Please sign in to comment.