On 7/22/2012 1:42 AM, Lex Trotman wrote:
On 22 July 2012 14:28, ping <[email protected]> wrote:
manual page 23/88 says:

  If the 'listing' style is applied to a LiteralBlock it will be
  rendered as a ListingBlock (this is handy if you have a listing
  containing a *Listing*Block).

shouldn't it be:

  If the 'listing' style is applied to a LiteralBlock it will be
  rendered as a ListingBlock (this is handy if you have a listing
  containing a *Literal*Block).


No, its correct, a listing containing a listing block would terminate
incorrectly at the embedded block so you can't do that.


By putting it in a literal block the embedded listing block doesn't
terminate the block, and by applying the listing style the output
still looks like a listing.



can you bring an example of the usage?
I probably spent more than 2 hours on this but couldn't figure out...
is it for a "nested" listing block like following?

.list1
----
my list block

[listing]
....
my embedded list
....

----

I tried that, but EVERYTHING between ---- is literally displayed.


Cheers
Lex

?

maybe my understanding is wrong.
thanks.



--
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.

Reply via email to