Remove CR within multiple lines of text

Help with writing and playing macros

Remove CR within multiple lines of text

Postby mightymax » Wed Oct 20, 2004 9:49 am

Trying to remove carriage returns between these lines of code. Problem is the CR can be anywhere/any position within these tags. What I had thought of doing was to find all contents between <?FRAME and DESC='TESTING'> Then convert CR to wrap. But this isn't working. Thanks for you help <smiles>max

What I have so far is

InsertMode
ColumnModeOff
HexOff
UnixReOn
Top
Find RegExp "[<][?]FRAME .* DESC='List of Acronyms'>"
ReturnToWrap

The sample text I'm trying to manipulate is

<?FRAME ID='2-8' TITLE='TESTING 'TESTING , 'TESTING 2.2 'TESTING 'TESTING , 'TESTING SHOWNO='Y' STYLE='../STYLES/'TESTING1.STY' PREVIOUS=''TESTING !2-7' NEXT='2-8.01'>
<?BUTTON POS='12' SHOW='Y' LABEL='TESTING' TYPE='FRAME' LINK='z_'TESTING .sgm!4-80' BITMAP='N' DESC=''TESTING '>

<?FRAME ID='2-8' TITLE='TESTING 'TESTING , 'TESTING 2.2 'TESTING 'TESTING , 'TESTING SHOWNO='Y' STYLE='../STYLES/'TESTING1.STY'
PREVIOUS=''TESTING !2-7' NEXT='2-8.01'>
<?BUTTON POS='12' SHOW='Y' LABEL='TESTING' TYPE='FRAME' LINK='z_'TESTING .sgm!4-80' BITMAP='N' DESC=''TESTING '>

<?FRAME ID='2-8' TITLE='TESTING 'TESTING , 'TESTING 2.2 'TESTING 'TESTING , 'TESTING SHOWNO='Y' STYLE='../STYLES/'TESTING1.STY' PREVIOUS=''TESTING !2-7' NEXT='2-8.01'>
<?BUTTON POS='12' SHOW='Y' LABEL='TESTING'
TYPE='FRAME' LINK='z_'TESTING .sgm!4-80' BITMAP='N' DESC=''TESTING '>

<?FRAME ID='2-8' TITLE='TESTING
'TESTING , 'TESTING 2.2 'TESTING 'TESTING , 'TESTING SHOWNO='Y' STYLE='../STYLES/'TESTING1.STY' PREVIOUS=''TESTING !2-7' NEXT='2-8.01'>
<?BUTTON POS='12' SHOW='Y' LABEL='TESTING' TYPE='FRAME' LINK='z_'TESTING .sgm!4-80' BITMAP='N' DESC=''TESTING '>
User avatar
mightymax
Basic User
Basic User
 
Posts: 30
Joined: Tue Jul 27, 2004 11:00 pm
Location: San Diego, CA

Re: Remove CR within multiple lines of text

Postby Manni » Thu Oct 21, 2004 2:54 am

I guess that ReturnToWrap works only on selected paragraphs. So what you have to do in your macro is find the beginning of your text block, issue a 'StartSelect' then find the end of the block and do 'EndSelect' and then do 'ReturnToWrap'.

When Uedit does a Find in a macro, it doesn't seem to perform the selection that it does when you do the same thing manually.


Manni
User avatar
Manni
Advanced User
Advanced User
 
Posts: 58
Joined: Thu Jul 15, 2004 11:00 pm
Location: Europe

Re: Remove CR within multiple lines of text

Postby mightymax » Thu Oct 21, 2004 11:40 am

Thanks! Worked like a charm.
User avatar
mightymax
Basic User
Basic User
 
Posts: 30
Joined: Tue Jul 27, 2004 11:00 pm
Location: San Diego, CA


Return to Macros