Professional Web Applications Themes

nested list with rdoc - Ruby

Hello there! I'm using rdoc version 0.9.0, the one distributed with self-install windows package, and I can't get any good looking nested list. I've tried to use this: * the first item * the nested item * the second item This: * the first item * the nested item * the second item That: * the first item ** the nested item * the second item And I even tried to mix different kind of lists: *, - or 1. But none of them gives me satisfaction, in the best case, the nested list gives a indented preformated block. The ...

  1. #1

    Default nested list with rdoc

    Hello there!
    I'm using rdoc version 0.9.0, the one distributed with self-install
    windows package, and I can't get any good looking nested list.

    I've tried to use this:
    * the first item
    * the nested item
    * the second item

    This:
    * the first item
    * the nested item
    * the second item

    That:
    * the first item
    ** the nested item
    * the second item

    And I even tried to mix different kind of lists: *, - or 1.
    But none of them gives me satisfaction, in the best case, the nested
    list gives a indented preformated block.

    The docs on rdoc doesn't help, is this a bug?
    If not how should I do? Can someone help me?

    Lio

    shasckaw Guest

  2. #2

    Default Re: nested list with rdoc


    On Feb 3, 2004, at 10:35, shasckaw wrote:
     

    The '*' from the nested list should be underneath the first character
    of the text of it's parent:

    * line one
    * nested one
    * nested two
    * line two
     

    There's an example in the README:

    1. Lists are typed as indented paragraphs with:
    * a '*' or '-' (for bullet lists)
    * a digit followed by a period for
    numbered lists
    * an upper or lower case letter followed
    by a period for alpha lists.


    Cheers

    Dave



    Dave Guest

  3. #3

    Default Re: nested list with rdoc

    Dave Thomas wrote: 
    It finally works, thanks!
     
    >
    >
    > There's an example in the README:
    >
    > 1. Lists are typed as indented paragraphs with:
    > * a '*' or '-' (for bullet lists)
    > * a digit followed by a period for
    > numbered lists
    > * an upper or lower case letter followed
    > by a period for alpha lists.[/ref]
    I've read it but I must tell I haven't understood it was just a matter
    of column alignement. I use wscite for editing ruby and it doesn't align
    columns excepted for tabulations. It makes the use of rdoc nested list a
    little bit uneasy. If rdoc could also allow nested lists with the use of
    tabulations in addition to the column alignement way, it would certainly
    help me, and all the ones like me. What do you think about that proposition?

    Cheers,
    Lio

    shasckaw Guest

  4. #4

    Default Re: nested list with rdoc


    On Feb 3, 2004, at 17:25, shasckaw wrote:
     

    I understand your pain, but the guiding principle behind RDoc is that
    the raw source should be universally readable. If tabs are used, and
    tab stops aren't aligned at 8-character intervals, then that's no
    longer the case.

    If someone would like to come up with a patch that added support for
    tabs as an option, I'd look at integrating it.


    Cheers

    Dave



    Dave Guest

  5. #5

    Default Re: nested list with rdoc

    Dave Thomas wrote: 
    I'll think about that! ;)

    Lio

    shasckaw Guest

Similar Threads

  1. rdoc and hyperlinks
    By Joel in forum Ruby
    Replies: 5
    Last Post: January 29th, 01:46 PM
  2. Replies: 6
    Last Post: January 1st, 03:09 AM
  3. RDoc and i18n
    By KUBO Takehiro in forum Ruby
    Replies: 10
    Last Post: October 23rd, 05:17 AM
  4. Bug in RDoc?
    By Marek Janukowicz in forum Ruby
    Replies: 0
    Last Post: October 18th, 04:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139