Hello Stuart, thanks for your answer.
This works fine for me: [cols='asciidoc,literal', options="header"] |======= |phase|code example |assertions|assertNotNull(myList); assertFalse(myList.isEmpty()); assertEquals(1, myList.size()); Element el = myList.get(0); assertEquals(el, FIRST_ELEMENT); |======= -- Regards, Tomek Kaczanowski http://kaczanowscy.pl/tomek On Sep 10, 10:27 pm, Stuart Rackham <[email protected]> wrote: > On 11/09/10 15:17, Tomek Kaczanowski wrote: > > > > > Hello, > > > I am stuck with insertion of a source code listing inside a table > > cell. > > > This does not work: > > [options="header"] > > |======= > > |assertions|.Title1 > > [source,sh] > > ---- > > FOO=BAR > > ls /foo > > ---- > > |======= > > > This works but renders properly as PDF only. Html version is rendered > > as one line (new lines are ignored). > > [options="header"] > > |======= > > |assertions|`assertNotNull(myList); > > assertFalse(myList.isEmpty()); > > assertEquals(1, myList.size());` > > |======= > > > This works fine for HTML but with PDF I have too much space between > > each line. > > [options="header"] > > |======= > > |assertions|`assertNotNull(myList);` > > `assertFalse(myList.isEmpty());` > > `assertEquals(1, myList.size());` > > |======= > > > Generation of html and PDF looks like this: > > asciidoc -o $TARGET/book.html $SRCDIR/book/book.txt > > a2x -f pdf -d book --fop $SRCDIR/book/book.txt -v -D $TARGET > > > Any hint on how to do it right? > > Use the 'asciidoc' table style: > > [cols="a",options="header"] > > See:http://www.methods.co.nz/asciidoc/userguide.html#X71 > > More examples:http://www.methods.co.nz/asciidoc/newtables.html > > Cheers, Stuart > > > -- You received this message because you are subscribed to the Google Groups "asciidoc" 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/asciidoc?hl=en.
