I'm somewhat at a loss with the following.
Why does Test 1 display the newlines, but Test 2 does not?

------

<html><head><title>MochiKit Test</title>
<script src="MochiKit.js" type="text/javascript"></script>
</head><body>
<h2>Test 1</h2><p id="test1"/>
<h2>Test 2</h2><p id="test2"/>
<script type="text/javascript">
text ="This\nis\na\ntest";
text = text.split('\n');
test1 = zip(text, [BR(), BR(), BR(), BR()]);
appendChildNodes("test1", test1);
test2 = zip(text, repeat(BR()));
appendChildNodes("test2", test2);
</script>
</body></html>

------

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to