ul.append(li1);
ul.appendText("\n");
ul.append(li2);
etc.
On Thursday, August 9, 2012 12:24:56 PM UTC+2, Nigel Crane wrote:
>
> I have been using moo for a while now but just wondered if anyone else has
> had this problem and how they got around it.
>
> I am building a webapp that generates an <ol> with <li>'s inside.
> Now part of my class for the ol is doing a display: inline-block for the
> <li>s
>
> when I generate li elements "new Element(...).adopt" etc the code it
> produces is perfect for what I am doing it is not however creating the code
> with formating so the inline-block is not working correctly
>
> so
> ..<li>stuf</li><li>stuff</li>.. is being generated
> -and-
> ..<li>stuf</li>
> <li>stuff</li>.. is what I want as it displays differently
> is there a way to ...
> newElement('li', {..('addtextAfter','\n'})) then this will fix my problem
>