Forum Discussion
AlexanderM
14 years agoStaff
Hi Andrei,
Modify the following code snippet of the LogDataToText function:
for(var i = 0; i < logData.childNodes.length; i++) {
result += LogDataToText(logData.childNodes.item(i), indentIndex + 1, indentSymbol);
}
in the following way:
if (logData.childNodes.length > 2)
for (var i = 0; i < logData.childNodes.length; i++) {
result += LogDataToText(logData.childNodes.item(i), indentIndex + 1, indentSymbol);
}