I've found that pasting into a Google Document produces an unexpected result.
Copy the following minimal test case:
A link
and paste it into a GDoc.
When pasted into a GDoc, the text of the link includes the preceding space.
After copying the minimal test case to the clipboard, the clipboard contains the following:
❯ xclip -sel c -t text/html -o
<meta http-equiv="content-type" content="text/html; charset=utf-8">A <a href="https://example.com" rel="nofollow">link</a>
As you can see, the link text on the clipboard correctly consists only of the word link
; is does not include a space. But when pasted into a GDoc, the text of the link includes the preceding space.