Closed Jimflip closed 12 years ago
This seems to fix it :)
if( /^<\w/.exec(ar[ix-1]) && /^<\/\w/.exec(ar[ix]) &&
/^<\w+/.exec(ar[ix-1]) == /^<\/\w+/.exec(ar[ix])[0].replace('/',''))
{
str += this.shift[--deep]+ar[ix];
if(!inComment) deep--;
}
It's not starting all elements on newlines, I get the same issue when using other xml sources.