Previous Macro Not Working As Expected

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
aimy
Posts: 53
Joined: Mon Nov 01, 2004 4:02 am

Previous Macro Not Working As Expected

Post by aimy »

Hi.

Previously I have a Macro to convert list item to ' '.

The problem I'm having with the latest version is that, the list was not separated accordingly with the corresponding comma.

Sample List:

Code: Select all

badrul53@TEST
tanchouho@TESTbiz
davidooi88888@TEST
lingaisamudin@TEST
azeemrahman17056789@TEST
rakabuba909@TEST
lukman@TEST
wongshuwen@TEST
teohmeilan@TEST
star66732345@TEST
khairulanuarmatsuki@TEST
pkh22@TEST
najmi256@TEST
nsyuhada22@TEST
koohyokelan@TEST
nortasnim95@TEST
malineecea662@TEST
norlizacheendut@TEST
zalina0522@TEST
nyoklian66@TEST
iqbalxavier170@TEST
saravannan07@TEST
mohdfirdaus2022@TEST
kirihakino99@TEST
grace267@TEST
muhammadafi@TEST
hil2185@TEST
kartini88s@TEST
azikri855@TEST
yuzairiadam63@TEST
TextPad 8.10.0

Image

TextPad 8.9.0

Image

Take note on the yellow highlighted.

I've been using the same Macro for more than 5 years for sure without any issues.

Any workaround for this issue?

Thanks.
aimy
Posts: 53
Joined: Mon Nov 01, 2004 4:02 am

Post by aimy »

User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

without knowing the macro it's hard to say what goes wrong.

Go to Configure -> Preferences, then Macros, select the macro for your list conversion, and press Edit.

Then copy the stuff from "commands" to here. Preferably in a code block.
User avatar
AmigoJack
Posts: 502
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Post by AmigoJack »

It's basically replace

Code: Select all

\<[[:graph:]]{1,50}\>
by

Code: Select all

'$0',
and it neither makes sense nor am I able to reproduce it: the sample list has multiple lines, but the screenshots show one single line. The replacement operation nowhere eats linebreaks.

Are you sure "Sample List" is exactly what we should use? Multiple lines? And the outcome should really be ONE line?
Post Reply