Difference between revisions of "Team:Czech Republic/Template:Scripts"

Line 28: Line 28:
 
for (var i = 0; i < len; i++) {
 
for (var i = 0; i < len; i++) {
 
     var elem = paragraphs[i];
 
     var elem = paragraphs[i];
     if (elem.innerHTML == '<br>') {
+
     if (elem.innerHTML.trim() == '<br>') {
 
         elem.parentNode.removeChild(elem);
 
         elem.parentNode.removeChild(elem);
 
         i--;
 
         i--;

Revision as of 08:09, 10 September 2015