Converting space-aligned text

Subject: Converting space-aligned text
From: "Victoria Wroblewski" <victoria -dot- wroblewski -at- eagletest -dot- com>
To: <techwr-l -at- lists -dot- techwr-l -dot- com>
Date: Mon, 23 Feb 2009 17:08:13 -0600


We've got a monster of a plain text file that is generated from our
equipment that we need to format into something more professional
looking. Basically, it spits out data that we want to format to look
something like the following:

6.20 x.xxxx xxxx xxxxxxxxxxxxxxxxx
6.21 x = x.x
6.22 x.xxxx xxxx xxxxxxxxxxxxxxxxxxxxx
6.23 x = x.x
6.24 xx.xxxx xxxx xxxxxxxxxxxx
6.25 x = x.x

The problem is that it spits this out as a text file with everything
spaced using spaces, and not tabs. Makin' it pretty means going in and
manually converting various lengths of spaces into tabs, or aligning it
all with spaces (and it's been a "six of one, half a dozen of the other"
experience using either method).

Are there any tools out there that can deal with helping to convert this
kind of stuff? I haven't been able to find a way to automate the
removal of the spaces, since they can be different on each line, but I
don't know if this type of edit is common enough where someone has put
together any sort of application that will even do something like
convert areas with more than two spaces into a tab rather than spaces.



Victoria Wroblewski
Developer - Technical Documentation
Eagle Test Systems, Inc.

**This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.**

ComponentOne Doc-To-Help 2009 is your all-in-one authoring and publishing
solution. Author in Doc-To-Help's XML-based editor, Microsoft Word or
HTML and publish to the Web, Help systems or printed manuals.

Help & Manual 5: The complete help authoring tool for individual
authors and teams. Professional power, intuitive interface. Write
once, publish to 8 formats. Multi-user authoring and version control!

You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-

To unsubscribe send a blank email to
techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
or visit

To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com

Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit for more resources and info.

Please move off-topic discussions to the Chat list, at:


Exempt status for Tech Writers: From: beelia
Re: Exempt status for Tech Writers: From: Gregory P Sweet

Previous by Author: RE: Qualifications for an off shore writer?
Next by Author: Military documentation/tech writing specs
Previous by Thread: Re: Exempt status for Tech Writers
Next by Thread: Re: Converting space-aligned text

What this post helpful? Share it with friends and colleagues:

Sponsored Ads