Replacing CRLF with a space in a Word document

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Replacing CRLF with a space in a Word document

John F Hall
Hi list
 
Yes, it's indirectly about SPSS.  I have retrieved a  set of statistical notes to accompany my SPSS workshop tutorials.  They were originally written to Vax by Jim Ring in 1988 and later copied back (I think) to a DOS based desktop as WordStar4 files in Courier New 10.  I have now copied this into a Word document (in Arial 12, but retaining the Courier fixed format  for tables and 20 year-old SPSS output.)   I now need to reformat the Arial sections.  There are 65 pages and every line has a CRLF.  Does anyone know a quick way of replacing the CRLFs with a space?  Otherwise it will take me all day to go through and delete the end of each Arial line. 
 
OK they date from 1988, but they are fantastic tutorials (not intended to replace textbooks of that time, Norusis and  Loether & McTavish) aimed at non-numerate students and wannabe researchers.  Typical reason for doing my course, "I've got a degree in Sociology and I want a job!"
 
Help!
 
TIA
 
John Hall
Reply | Threaded
Open this post in threaded view
|

Re: Replacing CRLF with a space in a Word document

Marta Garcia-Granero
Hi John

John F Hall wrote:

> Yes, it's indirectly about SPSS.  I have retrieved a  set of
> statistical notes to accompany my SPSS workshop tutorials.  They
> were originally written to Vax by Jim Ring in 1988 and later copied
> back (I think) to a DOS based desktop as WordStar4 files in Courier
> New 10.  I have now copied this into a Word document (in Arial 12, but
> retaining the Courier fixed format  for tables and 20 year-old SPSS
> output.)   I now need to reformat the Arial sections.  There are 65
> pages and every line has a CRLF.  Does anyone know a quick way of
> replacing the CRLFs with a space?  Otherwise it will take me all day
> to go through and delete the end of each Arial line.
Go to Find&Replace, click on "More" and find "Special". In "Search"
select twice "paragraph" (it should show as ^p^p) and in "Replace with"
select "Paragraph" only once (^p). Click on "Replace All". I hope my
translation from Spanish Word 2003 will be accurate, perhaps the terms
will not be exactly the same (but they should be close)

HTH,
Marta GG



--
For miscellaneous SPSS related statistical stuff, visit:
http://gjyp.nl/marta/

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Replacing CRLF with a space in a Word document

Mike Pritchard
In reply to this post by John F Hall

Hi John.   Were you able to figure out the answer from Garcia’s suggestions?  I’ve used tricks like that many times to convert when the original file has hard returns or some other similar issue.  Sometimes I make a change to put some other character in place first, so I don’t lose the places where the hard returns are needed.  If your file is set up with single CRLF for the places that should have spaces, and repeated CRLF when there should be a paragraph, you probably don’t need to do that.

 

Another approach is to use an editor that’s more set up for programming – something like Notepad Plus for example.

 

Good luck

Mike

 

_________________________________________________________________________
Mike Pritchard | [hidden email] | 5 Circles Research | 425-444-3410


From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of John F Hall
Sent: Wednesday, October 21, 2009 2:39 AM
To: [hidden email]
Subject: Replacing CRLF with a space in a Word document

 

Hi list

 

Yes, it's indirectly about SPSS.  I have retrieved a  set of statistical notes to accompany my SPSS workshop tutorials.  They were originally written to Vax by Jim Ring in 1988 and later copied back (I think) to a DOS based desktop as WordStar4 files in Courier New 10.  I have now copied this into a Word document (in Arial 12, but retaining the Courier fixed format  for tables and 20 year-old SPSS output.)   I now need to reformat the Arial sections.  There are 65 pages and every line has a CRLF.  Does anyone know a quick way of replacing the CRLFs with a space?  Otherwise it will take me all day to go through and delete the end of each Arial line. 

 

OK they date from 1988, but they are fantastic tutorials (not intended to replace textbooks of that time, Norusis and  Loether & McTavish) aimed at non-numerate students and wannabe researchers.  Typical reason for doing my course, "I've got a degree in Sociology and I want a job!"

 

Help!

 

TIA

 

John Hall