🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Jim Meyering Sun, 09 Aug 1992 08:20
indent-1.5 indents if-block `{' by 4 spaces (should be 2)
#241
Author: Jim Meyering
Date: Sun, 09 Aug 1992 08:20
22 lines
975 bytes
Hi,

indent-1.5 -gnu seems broken.  The following single line
is turned into the code below it.

int main() { if (foo) { bar (); } return 0; }

int
main ()
{
  if (foo)
      {
        bar ();
      } return 0;
}

I don't mind the `return 0;' being on the same line as the
closing brace (since it started that way) but the 4-space
indentation of the if-block is wrong.

Jim Meyering             | Member of the League for Programming Freedom
meyering@cs.utexas.edu   | Contact me or league@prep.ai.mit.edu for more info.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads