On 07/03/2012 11:46 AM, ping wrote:
I'm currently trying to convert a plan text doc into asciidoc (also as
my first attempt to use this tool at production).

one issue is: how to make the 2nd level entry of a list, continue the
numbering instead of always got re-numbered starting from 1?

//so I hope to get this:
A. level1
   1. level 2
   2. level 2
B. level1
   3. level 2
   4. level 2

//instead of:
A. level1
   1. level 2
   2. level 2
B. level1
   1. level 2
   2. level 2

in practice:
////my doc:
At the moment getting QoS specific details for an interface ge-x/y/z.0
involves
   running the following set of commands-

   A. (provided  by ifinfo)
       1.  show interface ge-x/y/z.0 extensive
       2.  show interface queue ge-x/y/z.0
           show interface filters ge-x/y/z.0
           show interface policers ge-x/y/z.0

   B. (provided by dfwinfo)

   The above commands display details about:the multi-field classifiers
& the
   policers(single rate/two-rate discard/two/three-color
colorblind/color-aware)

   Based on the filters/policers attached to the interface from output
of (1),
   display the counters-

       3.  show firewall filter <filter-name>
       4.  show policer <policer-name>
////end of my doc

so when I convert it to html, I got following warnings:

asciidoc: WARNING: RLI-12720.txt: line 53: list item index: expected 1
got 3
asciidoc: WARNING: RLI-12720.txt: line 54: list item index: expected 2
got 4
asciidoc: WARNING: RLI-12720.txt: line 63: list item index: expected 1
got 7
asciidoc: WARNING: RLI-12720.txt: line 64: list item index: expected 2
got 8

////and this is the html file content I got:
At the moment getting QoS specific details for an interface ge-x/y/z.0
involves running the following set of commands-

   A.  (provided by ifinfo)

    1.   show interface ge-x/y/z.0 extensive

    2.   show interface queue ge-x/y/z.0 show interface filters
ge-x/y/z.0 show interface policers ge-x/y/z.0

   B.  (provided by dfwinfo)

The above commands display details about:the multi-field classifiers &
the policers(single rate/two-rate discard/two/three-color
colorblind/color-aware)

Based on the filters/policers attached to the interface from output of
(1), display the counters-

   1. show firewall filter <filter-name>

   2. show policer <policer-name>
////end of html file



just for the completeness of the thread:

after reading more about list, it looks I'm looking for a knob to turn off rules of "break the list". and it seems I found the solution in the manual here:
http://www.methods.co.nz/asciidoc/userguide.html#_numbered_lists
so it's:
You can set the list start number using the start attribute (works for HTML outputs and DocBook outputs processed by DocBook XSL Stylesheets). Example:

[start=7]
. List item 7.
. List item 8.


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