From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) Description of problem: Having the following code: do { whatever(); } while (condition=1); indent -cdw should give me: do { whatever(); } while (condition=1); but it gives me the same as the original. However, if the original is: do { whatever(); } while (condition=1); indent -cdw works as expected, leaving the text as is. indent -ncdw works (always) as expected making sure there exists a blank after the }. Version-Release number of selected component (if applicable): Version is 2.2.7. (is it?) The one that comes with RH 7.3. How reproducible: Always Steps to Reproduce: 1. Have a file test.c contain the code from the first example above. 2. ]$ indent test.c -cdw 3. ]$ cat test.c
Can you try indent-2.2.8-3 from Rawhide? You'll have to rebuild it to make it run on your system...
I just downloaded indent-2.2.8-3.i386.rpm from Rawhide. I didn't have to rebuild it. (Tested it on an RH72.) Result: It is still buggy. ]$ rpm -q indent indent-2.2.8-3
It's fixed in rawhide. I changed the behavior of cuddling to brace, so that the closing brace stays aligned with the opening one. This also affects cuddled else.