1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
|
{ @abstract(Test of lists tags.)
Normal lists:
@orderedList( @item(One) @item(Two) @item(Three) )
@unorderedList( @item(One) @item(Two) @item(Three) )
Empty list is accceptable:
@orderedList( )
@unorderedList( )
Whitespace inside lists is acceptable (and empty line
that is not inside any @@item is @italic(not) a paragraph):
@orderedList(
@item One
@item Two
@item(
Other tags inside the items are allowed,
e.g. @link(ok_lists link to self), @true,
@longcode(# begin X := Y; end; #),
@bold(something bold), URLs: http://pasdoc.sf.net/, paragraphs:
2nd paragraph, dashes: em dash ---, en dash --, short one -,
two consecutive short dashes @--.
)
)
Nested lists are also freely allowed:
@orderedList(
@item(
1st nested unordered list:
@unorderedList( @item(One) @item(Two) @item(Three) )
)
@item(
2nd nested unordered list:
@unorderedList( @item(One) @item(Two) @item(Three) )
)
@item(
And a couple of single-item ordered lists nested:
@orderedList( @item( @orderedList( @item( ))))
(Source code of this example begins to look like LISP :)
)
)
Definition lists tests:
@definitionList(
@item 1st item
@item 2nd item
)
@definitionList(
@itemLabel 1st item label
@item 1st item
@itemLabel 2nd item label
@item 2nd item
)
@definitionList(
@itemLabel 1st item label
@itemLabel 2nd item label
)
Item spacing tests:
@definitionList(
@itemLabel 1st item label
@item 1st item
@itemLabel 2nd item label
@item 2nd item
@itemSpacing(Paragraph)
@itemSpacing(Compact)
)
@orderedList(
@itemSpacing Compact
@item One
@item Two
@item Three
)
}
unit ok_lists;
interface
implementation
end.
|