2008/4/26, Christoph Zwerschke <[EMAIL PROTECTED]>:
>
> Either append them as DOM nodes, like this:
>
> text = ["hello", BR(), "world"];
> appendChildNodes(commentDiv, P({'class' : 'commentText'}, text));
For the curious, I changed the code into:
temp = result.comments[i].commentText.split("\n");
thisComment = [temp[0]];
for(j = 1; j < temp.length; ++j) {
thisComment.push(BR(), temp[j])
}
appendChildNodes(allCommentsDiv, commentDiv);
--
Cecil Westerhof
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---