# RDoc and block indent in the constructor

**URL:** <https://www.ruby-forum.com/t/rdoc-and-block-indent-in-the-constructor/52894>\
**Category:** Ruby\
**Created:** [January 20, 2006, 12:45am UTC](https://www.ruby-forum.com/t/rdoc-and-block-indent-in-the-constructor/52894 "2006-01-20T00:45:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/c57346/32.png) [@danielb](https://www.ruby-forum.com/u/danielb)\
**Post date:** [January 20, 2006, 12:45am UTC](https://www.ruby-forum.com/t/rdoc-and-block-indent-in-the-constructor/52894/1 "2006-01-20T00:45:18Z")

</div>

Hi all,

I’m having some RDoc trouble. Specifically, I can’t get indented code  
for  
: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  
left  
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  
notation  
there anyway).

Suggestions appreciated.

Thanks,

Dan
