Content deleted Content added
shorten prefix text per Graham87 |
in case the script is run twice on the same article |
||
Line 110:
child_node = temp_DD_element.firstChild;
if (child_node) {
if ((child_node.nodeType != 3) || (child_node.data.match(/^\(Indent\s\d+\)/))) {
temp_DD_element.insertBefore(document.createTextNode(indent_level_string), child_node);
} // add "(Indent #)" to beginning if it isn't there already
} else {
indent_level_string += "No text in this DD element.\n";
|