Forum: Ruby RDoc and block indent in the constructor

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
F3b7b8756d0c7f71cc7460cc33aefaee?d=identicon&s=25 Daniel Berger (Guest)
on 2006-01-20 00:45
(Received via mailing list)
Hi all,

I'm having some RDoc trouble.  Specifically, I can't get indented code
:call-seq: to maintain the block indent for the generated HTML.

The RDOC looks something like this:

# :call-seq:
# use foo, options
# # or
# use foo,
#   :option1 => :arg1, [...],
#   :option2 => :arg2, [...],
#   :option3=> {:key => :val}

When I run rdoc over this, the 'option1', 'option2' and 'option3' end up
justified in the generated HTML.  I'd like them to maintain their indent
in the
generated HTML (i.e. keep the same layout you see above).

Is this possible?  I messed around a bit with some of the various list
notations, but couldn't make it work (and I don't really want list
there anyway).

Suggestions appreciated.


This topic is locked and can not be replied to.