User:Proteins/unindent.js: Difference between revisions

Content deleted Content added
Proteins (talk | contribs)
improve code for counting prose size
Proteins (talk | contribs)
different approach to unindenting
Line 134:
 
if (indent_level > 0) {
if ((top_DD_node) && (top_DL_node)) {
top_DL_node.insertBefore(temp_DD_element, top_DD_element);
/*
sibling_node = top_DD_node.nextSibling;
while ((sibling_node) && (sibling_node.nodeType != 1)) {
Line 145 ⟶ 147:
top_DL_node.appendChild(temp_DD_element);
}
*/
} // check that both the top_DD and top_DL elements are defined
} // check for unindenting
} // closes loop over the DD elements of the document
window.alert(diagnostic_string);
 
// Third-pass loop to uncreate empty discursive lists
 
//Acknowledgment