Return-Path: owner-linux-activists@Niksula.hut.fi
Return-Path: <owner-linux-activists@Niksula.hut.fi>
Received: from joker.cs.hut.fi by hydra.Helsinki.FI (4.1/SMI-4.1/39)
	id AA22436; Sat, 10 Apr 93 02:32:46 +0300
Received: from joker.cs.hut.fi by niksula.hut.fi id <62499-3>; Sat, 10 Apr 1993 02:31:10 +0300
From: "Linux Activists" <linux-activists@Niksula.hut.fi>
To: "Linux-Activists" <linux-activists@Niksula.hut.fi>
Reply-To: "Linux-Activists" <linux-activists@Niksula.hut.fi>
X-Note1: Remember to put 'X-Mn-Key: DOC' to your mail body or header
Subject: Linux-Activists - DOC Channel digest. 93-3-9-19:40
X-Mn-Key: DOC
Sender: owner-linux-activists@Niksula.hut.fi
Message-Id: <93Apr10.023110eet_dst.62499-3@niksula.hut.fi>
Date: Sat, 10 Apr 1993 02:31:05 +0300
Status: RO
X-Status: 


Topics:
	 Formatting tabular output in man pages


----------------------------------------------------------------------

From: David Metcalfe <david@prism.demon.co.uk>
Subject: Formatting tabular output in man pages
Date: Fri, 9 Apr 1993 18:09:01 +0300


I am trying to format output similar to

	struct name {
		int	field1;		/* desc 1 */
		int	field2;		/* desc 2 */
	};

At the moment i am using the following nroff code

 .RS
 .nf
 struct name {
 	 int	   field1;	/* desc 1 */
	 int	   field2;	/* desc 2 */
 };
 .fi
 .RE
	
Unfortunately this doesn't format the way I would expect it to, no
matter what combination of tabs and spaces I use.  The "int field1"
part I can get to format correctly by using spaces.  But the comment
fields don't line up whether I use tabs, spaces or a combination of
the two.  What is the correct way of laying out a structure like this
with the man macros?

David

-- 
David Metcalfe		david@prism.demon.co.uk
London, England		dmetcalf@cix.compulink.co.uk



------------------------------

End of DOC Digest
*****************
-------
