Dr. Dheeman, why not do them all, in other words, a configurable beautification utility, with each of those formats you listed being out-of-the box sample configuration files. Like matz.yml.sample and dr_dheeman.yml.sample? Ralph "PJPizza" Siegler On Fri, May 27, 2005 at 11:45:20PM +0900, Dr Balwinder S Dheeman wrote: > Dear Rubiest! > > I'm working on a Ruby source code formatting and, or beautification > utility (http://rindent.rubyforge.org/) for ruby programmers and, or > developers. > > Hence, I'm looking forward to your valuable ideas on how do I format the > following code structures: > > 1) *begin* > > 1.1.1) as per matz: > > begin > expr.. > [rescue [error_type,..] > expr..].. > [else > expr..] > [ensure > expr..] > end > > 1.2.1) but I prefer: > > begin > expr.. > [rescue [error_type,..] > expr..].. > [else # a hanging 'else' clause > expr..] > [ensure # a hanging 'ensure' clause > expr..] > end > > 1.2.2) but I also like: > > begin > expr.. > [rescue [error_type,..] > expr..].. > [else > expr..] > [ensure > expr..] > end > > > 2) *case* > > 2.1.1) as per matz: > > case expr > [when expr [, expr]...[then] > expr..].. > [else > expr..] > end > > 2.2.1) but I prefer: > > case expr > [when expr [, expr]...[then] > expr..].. > [else # a hanging 'else' clause > expr..] > end > > 2.2.2) but I also like: > > case expr > [when expr [, expr]...[then] > expr..].. > [else > expr..] > end > > > Whichever of above appeals you better? Or do any of you have better > ideas on these? What would you expact more from such a utility? Feedback > of yours shall highly be appreciated. > > Regards, > -- > Dr Balwinder Singh Dheeman Registered Linux User: #229709 > CLLO (Chief Linux Learning Officer) Machines: #168573, 170593, 259192 > Anu's Linux@HOME Distros: Ubuntu, Fedora, Knoppix > More: http://anu.homelinux.net/~bsd/ Visit: http://counter.li.org/ >