From owner-freebsd-questions@FreeBSD.ORG Fri Nov 21 13:39:27 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E91CB1065670 for ; Fri, 21 Nov 2008 13:39:27 +0000 (UTC) (envelope-from jonathan+freebsd-questions@hst.org.za) Received: from hermes.hst.org.za (onix.hst.org.za [209.203.2.133]) by mx1.freebsd.org (Postfix) with ESMTP id 24D078FC14 for ; Fri, 21 Nov 2008 13:39:26 +0000 (UTC) (envelope-from jonathan+freebsd-questions@hst.org.za) Received: from sysadmin.hst.org.za (sysadmin.int.dbn.hst.org.za [10.1.1.20]) (authenticated bits=0) by hermes.hst.org.za (8.13.8/8.13.8) with ESMTP id mALDSKDL046641 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 21 Nov 2008 15:28:21 +0200 (SAST) (envelope-from jonathan+freebsd-questions@hst.org.za) From: Jonathan McKeown Organization: Health Systems Trust To: freebsd-questions@freebsd.org Date: Fri, 21 Nov 2008 15:39:28 +0200 User-Agent: KMail/1.9.7 References: <4926922C.8050702@gmail.com> In-Reply-To: <4926922C.8050702@gmail.com> X-Face: $@VrUx^RHy/}yu]jKf/<4T%/d|F+$j-Ol2"2J$q+%OK1]&/G_S9(=?utf-8?q?HkaQ*=60!=3FYOK=3FY!=27M=60C=0A=09aP=5C9nVPF8Q=7DCilHH8l=3B=7E!4?= =?utf-8?q?2HK6=273lg4J=7Daz?=@1Dqqh:J]M^"YPn*2IWrZON$1+G?oX3@ =?utf-8?q?k=230=0A=0954XDRg=3DYn=5FF-etwot4U=24b?=dTS{i X-Spam-Score: -1.499 () ALL_TRUSTED,AWL,BAYES_00,URIBL_BLACK,URIBL_PH_SURBL X-Scanned-By: MIMEDefang 2.61 on 209.203.2.133 Subject: Re: ascii text format X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Nov 2008 13:39:28 -0000 On Friday 21 November 2008 12:49:16 pwn wrote: > algouth this is not a freebsd specific text, i need to format some texts > under freebsd for they appear in the center of the page when opened in a > browser, but i dont want to use HTML for format them, i just want to add > tabulation to my *.txt. > what software/tool can i use for format my *.txt? there is command on > VIM like "set textwidth" but this is not suitable for me. any help i > appreciate. > i add an example on a temporary host for make sure all understand. > (i need to format the text for he appear like the example good.txt) > http://one.xthost.info/temphost/good.txt > http://one.xthost.info/temphost/bad.txt You seem to be fighting against your tools rather than working with them - the browser will strip out your whitespace and reflow your text anyway unless you prevent it somehow (
 tags?) so you might be better off just using 
HTML/CSS to control the format.

However, you could look at various tools for processing text, depending 
exactly what you're trying to do: the manpages for fmt, groff, and pr might 
all offer some ideas.

Jonathan