Jump to content

Recommended Posts

Posted

Hi, i have a long Mtext list which has been created externally from my office, the first 25 characters is the material name followed by the quantity. I need to get the quantity part of each line to line up currently it requires a user to use the space bar to line up the quantity part of the line, this is time consuming and not the most fun thing to do when you have 100's of lines to fix.

 

Is there a way that i can set the tab distance via a lisp and loop down each line removing everywhere where there is more than a single space and replace it with a tab(chr 9)?

 

Currently it comes in as follows, the problem is that spaces and the letters are not the same width:

 

Bricks 10000

4x2 wooden planks 6000

white doors 6

 

thanks in advanced.

 

Dan

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...