Apply of patch from Roger Kristiansen to fix issue #80

pull/14/head
Tim Su 17 years ago
parent c6ccef1aed
commit 60af08f0b1

@ -50,10 +50,14 @@ public class RtmTaskNote
created = parseDate(element.getAttribute("created"));
modified = parseDate(element.getAttribute("modified"));
title = element.getAttribute("title");
if (element.getChildNodes().getLength() > 0)
{
Text innerText = (Text) element.getChildNodes().item(0);
text = innerText.getData();
// The note text itself might be split across multiple children of the
// note element, so get all of the children.
for (int i=0; i<element.getChildNodes().getLength(); i++) {
Text innerText = (Text) element.getChildNodes().item(i);
if (text == null) text = "";
text = text.concat(innerText.getData().toString());
}
}

Loading…
Cancel
Save