@heyJoeCampbell, I'm not sure what you are doing, but looks like the problem may be in the paste to Google docs.
When I try this:
Set Chrome to
and paste into BBEdit, I get this:
with no CR or LF at the end.
Try pasting into Gmail - I also experienced the linebreak there as well
Sorry, I've given you a solution that does NOT have a linebreak on the clipboard.
I'm not going to try to diagnose issues with gmail or google docs in using that data.
If you use a KM Macro to do the paste, then just add a Type Keystroke of backspace after the paste.
Thank you for your assistance
I figured it out, moving the ref=.*/\1/ action before the %Variable%Chrome__URL% action resolved the rogue line break issue
Thanks again for the assistance
This doesn't make any sense.
This is not a valid RegEx:
Your last action overwrites the Clipboard, making all of the above changes useless.
None of your actions address the "rogue line break issue"
But if it works for you, then fine. I guess we're done here.
Caution to other readers: I do not recommend the solution posted by @heyJoeCampbell.
Only 5 yrs late to the party. Does anyone maintain a repository for KM Macros and so we can browse and find the latest versions of them? I see this Macro here and think it likely some improvements. There are hundreds of other macros here that feel like orphans.
The short answer is nyet.
If there were I imagine @Peter_Morgan would have mentioned it.
The Keyboard Maestro Forum is a user-forum not a library. Many macros are offered for posterity and are not maintained. Many macros are offered to help accomplish someone's task du jour.
Only a few macros on the forum are regularly maintained and/or augmented by their authors.
You can find a few of them in this listing:
Best Macro List