Rosetta Code:Per-Code Example Buttonbar: Difference between revisions

Fixed bug where line break tags further down in the document tree were not converted to line breaks for use with Codepad
(Adding new page)
 
(Fixed bug where line break tags further down in the document tree were not converted to line breaks for use with Codepad)
Line 129:
return outText;
} break;
defaultcase "":
{
//no tag name
//probably just text
outText += (preEl.childNodes[c].textContent ? preEl.childNodes[c].textContent : (preEl.childNodes[c].innerText ? preEl.childNodes[c].innerText : preEl.childNodes[c].data));
} break;
default:
{
outText += ButtonBarGetText(preEl.childNodes[c]);
}
}
Anonymous user