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")); created = parseDate(element.getAttribute("created"));
modified = parseDate(element.getAttribute("modified")); modified = parseDate(element.getAttribute("modified"));
title = element.getAttribute("title"); title = element.getAttribute("title");
if (element.getChildNodes().getLength() > 0)
{ // The note text itself might be split across multiple children of the
Text innerText = (Text) element.getChildNodes().item(0); // note element, so get all of the children.
text = innerText.getData(); 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