From: Ubaldo Villaseca Date: 2007-11-13T10:11:08+09:00 Subject: Re: How to wrap code examples in comments I found the answer by accident, just adding extra spaces at the begin of comment line, but now I have another question, I'm trying to place a labeled list in two lines like: # objInputData:: Optional. The input data required by the logic defined in # derived classes. It's commonly a hash map. Set to nil by default. Line two HTML is generated in typewriter mode. How could build a labeled list using multiple lines? Is there a nice site to find more information about RDoc? http://rdoc.sourceforge.net/doc/index.html seems to be insufficient. Thanks a lot. On Nov 12, 2007 7:48 PM, Ubaldo Villaseca wrote: > Hi guys, > I tried to post this in ruby-talk@ruby-lang.org but nobody seems to be there. > I'm new on documenting Ruby sources, I have some early opinions about > RDoc but this time and want to ask you something. > I tried to wrap code examples in comments using the following: > # > # def setUp > # files << File.new() > # end > # > > But it doesn't work, it generates an ugly HTML like > def setUp > > @appStates << AppState1.new() > > end > > What am I missing here? > > Thanks, > Ubaldo >