🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #2646

Are TABS bad?

#2646
From: "John E. Davis"
Date: Mon, 25 Mar 1991 03:59
25 lines
1465 bytes
Hi,

  It seems to me that a tab character in a text file is a bad thing since
there is some ambiguity over what it means.  That is, it depends on the tab
settings of the output device.  Do most programs which deal with tabs in ascii
files assume they are eight column tabs?

  The reason I want to know is that I wrote a program that strips excess
whitespace at the end of lines of text files.  I also made the program convert
tab characters to the proper number of spaces (based on 8 column tabs).
However, based on the length of the output file compared with the input file
it seems that I should have made the program convert excess spaces to tab
characters due to the large number of tabs that appear in text files.

  So my question is: Are tabs bad?  If not then how does one interpret them in
a device independent way?

Thanks,


--
John

  bitnet: davis@ohstpy
internet: davis@pacific.mps.ohio-state.edu
Technical Details
Message-ID: <DAVIS.91Mar24225932@pacific.mps.ohio-state.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!davis

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!tut.cis.ohio-state.edu!pacific.mps.ohio-state.edu!davis
From: davis@pacific.mps.ohio-state.edu ("John E. Davis")
Newsgroups: comp.text
Subject: Are TABS bad?
Message-ID: <DAVIS.91Mar24225932@pacific.mps.ohio-state.edu>
Date: 25 Mar 91 03:59:32 GMT
Sender: news@pacific.mps.ohio-state.edu
Reply-To: davis@pacific.mps.ohio-state.edu  (John E. Davis)
Distribution: comp
Organization: "Dept. of Physics, The Ohio State University"
Lines: 25