I'm not entirely sure what you mean by "scrub paragraph," but I believe you want to remove line breaks, carriage returns, and leading spaces to merge paragraphs into one continuous block of text.
You can achieve this with a search and replace operation. Here's a regex pattern that should work:
Strip "Horizontal White Space character" from the beginning of paragraphs
Replace them with a single pipe marker (to show where paragraphs were separated). You can replace it with a space or other character.
For more complex text processing needs, I'd recommend familiarizing yourself with regex tools and testing patterns before applying them to your actual content. You can find an explanation of the regex I used previously here:
Important: In Keyboard Maestro, make sure to add (?m) at the beginning of your search pattern if you're working with multi-line text.
I hesitated to reply to him because I don't know what he wants either. Merging lines separated by newlines into single paragraphs is an extremely difficult thing to do since you sometimes need to understand the meaning of the words to know if a new paragraph is intended there or not.
For example, if a line ends with "Mrs." then it's probably intended to be joined by the next line as part of the same sentence. But you actually have to understand the text to know that. There is no regex that understands the meaning of sentences.
I tried to add in the characters that @JuanWayri suggested, but I don't know how to use the macro that someone else made. I have text with too many pharagraph marks. I copy it as the 1 clipboard.
I think I do not understand the process of implimenting the macro.
If you want to remove "empty" paragraphs, the simplest way is to replace every "two or more Returns" with a single linefeed -- it's good to think of it in that way because your source text may indicate new lines (your "paragraphs") with a \n linefeed (the modern Mac way), a \r return (the old Mac way), or even \r\n (Windows). Luckily the regex \R covers all of those, so to remove empty paragraphs while keeping the to the same new-line type:
Of course, you may want to convert the Returns so they are always Mac linefeeds, removing empty paragraphs at the same time:
As you can see, there's lots of ways to do this depending on exactly what you want to do. It helps if you provide samples of the "before" and "after" text so we're all aiming at the same goal -- use the Forum's "Preformatted text" option: