Say I have text like the following text selected with the cursor:
This is a test. This is a test. This is a test. This is a test.
I wo
#SingleInstance force #v:: Send ^c ClipWait ClipSaved = %clipboard% Loop { StringReplace, ClipSaved, ClipSaved, `r`n`r`n, `r`n, UseErrorLevel if ErrorLevel = 0 ; No more replacements needed. break } Clipboard := ClipSaved return