bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-indent] 2.2.8a: --cuddle-do-while doesn't always


From: Ives Aerts
Subject: [Bug-indent] 2.2.8a: --cuddle-do-while doesn't always
Date: Wed, 7 Aug 2002 14:01:42 +0200
User-agent: Mutt/1.2.5i

--cuddle-do-while doesn't always seem to work as advertised in 2.2.8a.

For example, given:

  void foo(void)
  {
    do { naught(); } while (never);

    do { naught(); }
    while (never);
  }

then indent -br -cdw gives:

  void
  foo (void)
  {
    do {
      naught ();
    } while (never);

    do {
      naught ();
    }
    while (never);
  }

Note how the second while is still on a separate line.

Cheers,
-Ives
______________________________________________________________________
Ives Aerts                                 Sony Visual Products Europe
`Damien Hirst tends to use everyday objects such as a shark in
 formaldehyde.'                                (a radio 4 commentator)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]