On Sun, 18 Sep 2011 22:05:24 +0200 Francisco J Ballesteros <n...@lsub.org> wrote:
> Somehow indent has indented wrong some ifs > (the code in the body is at the same tab level than the if). > Perhaps I made a mistake. I'm not saying it doesn't work > (I'm sorry if I did). > > but cb was just fine. I've had indent fail on something I thought would be easily parsable. All I remember is it got indentation wrong from a certain point up to the end of the file, and simply removing a newline before a brace nullified the error. Somewhere I have a script which fed about a dozen options to indent to get the style I wanted. It was a very clear style (unlike indent's default) but I can't find it now. I suspect it's on my Zaurus and was primarily intended to fit code to the 63-column xterm I prefered on that device.