General discussion

Locked

Double carriage returns

By mlandry ·
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.

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Double carriage returns

by McKayTech In reply to Double carriage returns

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

Collapse -

Double carriage returns

by mlandry In reply to Double carriage returns

Poster rated this answer

Collapse -

Double carriage returns

by mlandry In reply to Double carriage returns

This question was closed by the author

Back to Desktop Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums