Every second return to tab

Get help using and writing Nisus Writer Pro macros.
Post Reply
User avatar
useeger
Posts: 93
Joined: 2004-06-28 00:03:01
Location: Germany
Contact:

Every second return to tab

Post by useeger »

Hello again,

I have a long word list, the words are seperated by returns. I want now a macro that changes every second return (\n) into a tab (\t) and leaves the others untouched. Seems to be easy, but I have no idea.

Thanks für help!

Ulrich
User avatar
phspaelti
Posts: 1364
Joined: 2007-02-07 00:58:12
Location: Japan

Re: Every second return to tab

Post by phspaelti »

This can easily be done with Find and Replace. In Powerfind it looks like this:
Find Two Paras.png
Find Two Paras.png (163.65 KiB) Viewed 3429 times
Note: I checked "Replace Formatting" to make sure any special formatting is kept. You may not really need this for a word list.

Basically you search for two paragraphs with their returns and you replace one of the two. If you do a Replace All using this, the find expression will match all paragraphs pairwise giving you the alternation you need. You can of course macroize the expression, if you want to reuse it often.

Macroized (in PowerFind Pro) it will look like this:

Code: Select all

Find and Replace @Text<^(.+)\n(.+)\n>, @Text<\1\t\2\n>, 'EaU'
philip
User avatar
useeger
Posts: 93
Joined: 2004-06-28 00:03:01
Location: Germany
Contact:

Re: Every second return to tab

Post by useeger »

Oh ... so easy, it's a litle bit embarrassing for me.

Thanks again very much, Philip!

Ulrich
seychellian
Posts: 4
Joined: 2018-01-03 19:52:04

Womens From Your City - No Selfie - Anonymous Adult Dating

Post by seychellian »

Private Girls From Your Town - No Selfie - Anonymous Adult Dating
https://PrivateLadyEscorts.com

Private Lady In Your City - Anonymous Sex Dating - No Verify

NEW GIRLS
Lola La Fleur
Mistress Arina
Emmeline
BaeAsian
Bella
Linda Warners
Corinne
Post Reply