help-gnu-utils
[Top][All Lists]
Advanced

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

GNU indent: switch case indentation problem


From: X37V
Subject: GNU indent: switch case indentation problem
Date: Thu, 12 Aug 2004 13:19:39 +0000

Hi, all!
I'm using indent with the -bli0 option and the standard GNU style
(commandline: 'indent -bli0 file.c')
Why does indent produce following output:
  switch(foo)
  {
     case(1):
  bar();
  break;
     case(2):
  buz();
  ...
  }
from a switch/case block?
How can I tell indent to format switch/case blocks in this way:
  switch(foo)
  {
    case(1):
      bar();
      ...

Thank you in advance!



reply via email to

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