Discussion Locked

Double carriage returns

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I had a huge project handed to me. The files are HTML files (approximately 10,000). Each file has multiple carriage returns between each tag. Is there any program that will take out these multiple carriage returns? I have tried numerous search and replace programs with no success.

3 replies

by mckaytech

You didn't say what your platform is, but in the Mac world, there is a shareware program called Add/Strip that will handle this. On the PC side, Mountain Software has a utility called PenPal (http://www.mountain-software.com/freeware.htm).

One final option would be a Word macro something like this:
With ActiveDocument.Content.Find
.ClearFormatting
.Replacement.ClearFormatting
.Execute Findtext:="^p^p",
ReplaceWith:="@$$@",
Replace:=wdReplaceAll
.Execute Findtext:="^p", ReplaceWith:="", Replace:=wdReplaceAll
.Execute Findtext:="@$$@", ReplaceWith:="^p^p", Replace:=wdReplaceAll
End With

link for that last one is: http://www.zdnet.com/pcmag/pctech/content/solutions/wp1808a.htm

paul

This discussion is closed to new replies.