🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #700

indent 1.6 bug (?)

#700
From: bhagwan
Date: Mon, 31 Aug 1992 09:24
62 lines
1394 bytes
	Consider the following C code:

/*
 *  Test
 */

main ()
{
	int code;

	/*
	 *  Thang.
	 */
	code = 1;
}


	indent -cbd test.c  produces:

/*
 *  Test
 */

main ()
{
  int code;

  /*
	 *  Thang.
	 */
  code = 1;
}

	which is not quite what I thought it would:

/*
 *  Test
 */

main ()
{
  int code;

  /*
   *  Thang.
   */
  code = 1;
}

	Maybe I just can't figure out the sequence of options that
	produce this result.  I don't want to format (paragraph) these
	comments---just have them move to the same column as the code
	with internal alignment unchanged.

	Possibly a problem because of tabs in the original file?


Thanks,
Allen L. McPherson               Member Holstein Aerobatic Club
Los Alamos National Laboratory   Advanced Graphics and Parallel Systems
Box 1663  Group:A-10  MS:J488    {bhagwan|alm|allen|mcpherson}@agps.lanl.gov
Los Alamos, NM   87545           Voice: (505) 667-8495  Fax: (505) 665-2083
Technical Details
Message-ID: <9208312124.AA05273@taos.agps.lanl.gov>
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!taos.agps.lanl.gov!bhagwan

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!taos.agps.lanl.gov!bhagwan
From: bhagwan@taos.agps.lanl.gov
Subject: indent 1.6 bug (?)
Message-ID: <9208312124.AA05273@taos.agps.lanl.gov>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 31 Aug 1992 09:24:18 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 63