Text is stair stepped with CUPS printing

[email protected] (Danesh Qureshi) Thu, 8 Jun 2006 14:40:27 +0000 (UTC)
Newsgroups gmane.linux.printing.general
Organization http://www.linuxprinting.org/
Message-ID <[email protected]>
I am running RHEL AS 4 on a HP Proliant DL585 server and have created a LPD
print queue through CUPS web interface to http://localhost:631/admin.
The print queue is setup to print to a network HP5500HDN Postscript printer
which is hosted by a Windows printer server.

When I created the print queue I selected Local RAW printer.
I am able to print Postscript files but when I send a plain
text file to the HP5500HDN printer the output is stair stepped. See below:-

This is a line
              This is a line
                            This is a line

I am aware their is no carriage return at the end of each line in text file.
I have a shell script which puts carriage return but where do I put the shell
script to get it to work.
I tried to edit the /etc/printcap and put a filter but when I restart the 
CUP daemon i.e. /sbin/service cups restart 
the changes I made to add the filter in the printcap are removed.

Can anyone help me.
Thank you.

Dan..