On 28 November 2012 05:44, Jens Getreu <[email protected]> wrote:
> I found the solution and probably a bug:
>
> Consider the following asciidoc code:
>
> .Code source
> ["source","java","numbered","8",args="--line-range=1-4"]
> ----
> include::./Main-extrait.java[]
> ----
>
> ["source","java","unnumbered","8",args="--line-range=4-"]
> ----
> include::./Main-extrait.java[]
> ----
>
> The second listing with the unnumbered argument should be printed
> without line numbers. It is always printed with line numbers.
>
> Solution :
> replace all
>       src_numbered?
> with
>       src_numbered@numbered:
>
> in the following files:
>
>       /etc/asciidoc/filters/source/source-highlight-filter.conf
>       /etc/asciidoc/backends/odt/odt.conf
>       /etc/asciidoc/backends/odp/odp.conf
>
>
> And a question: In the doc you see always  [source,phyton].
> Apparently it should be ["source","phyton"]. Is this right?
> If yes it should be changed in documentation.

Hi Jens,

I quoted the rules for attribute lists
http://www.methods.co.nz/asciidoc/userguide.html#X21 previously in
this thread, where it is specified that quotes are needed on all
arguments if any argument is quoted (eg because it has a comma in it)
or if any positional argument is used, so [source,python] is fine
since it meets neither of those conditions.

Cheers
Lex

PS if there actually is somewhere where it says [source,phyton] then
that is an error ;)

>
> --
> You received this message because you are subscribed to the Google Groups
> "asciidoc" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/asciidoc/-/fVwk8_qwUmQJ.
>
> 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.

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