Re: [SLUG] enscript messing with columns

From: Kwan Lowe (kwan@digitalhermit.com)
Date: Wed Apr 27 2005 - 16:33:06 EDT


> Anybody have experience with enscript? I'm using it in a perl script that
> automatically decrypts and prints files as they are FTP'd in. The text files
> have
> columns for account number, name, amount, etc. All the columns line up nicely
> when
> viewing these file with ls, more, or mc. However, when they are printed using
> the
> command:
>
> enscript -Ssetpapertray:1 -r -d lexmark2 foo.bar
>
> the columns no longer line up correclty with the headings. It looks like the
> Name
> column (which is the first column that varies in width) is "pushing" the
> remaining
> columns to the right depending on how long the name is. Is there any way to
> get
> enscript to honor the layout of the original text file?

Try explicitly setting the TABSIZE using the -T switch.

-- 
* The Digital Hermit   http://www.digitalhermit.com
* Unix and Linux Solutions   kwan@digitalhermit.com
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:07:48 EDT