Content deleted Content added
take care of multiple paragraph problem per Graham87 |
try to tackle separate list problem |
||
Line 30:
var child_node;
var parent_node;
var top_DL_node;▼
var top_DD_node;
▲ var top_DL_node;
var prev_top_DL_node;
var temp_DD_text;
Line 60 ⟶ 62:
num_unindented_DD_elements = 0;
num_higher_level_DD_elements = 0;
top_DL_node = null;
prev_top_DL_node = null;
prepended_string = "";
Line 117 ⟶ 122:
parent_node = parent_node.parentNode;
} // closes loop climbing up the document tree
if (top_DL_node != prev_top_DL_node) {
prev_indent_level_string = "";
}
prev_top_DL_node = top_DL_node;
if (indent_level > 2) { num_higher_level_DD_elements++; }
|