User:Proteins/unindent.js: Difference between revisions

Content deleted Content added
Proteins (talk | contribs)
code for skipping blank lines
Proteins (talk | contribs)
m proper conditional
Line 49:
// Skip empty DD elements
num_child_nodes = temp_DD_element.childNodes.length;
if (!num_child_nodes = 0) { continue; } // ignore empty DD elements
byte_count = temp_DD_element.replace(/(<([^>]+)>)/ig,"").replace(/\s/ig, "").length; // remove HTML tags
if (byte_count < 1) { continue; }