Special behavior about "blank spaces" in copy/past

  • Hi,

    In TWPRichText.ClipboardOptions I have wpcoDontAutoAppendSpace flag, which defines if WPTools should work similar to MSWord when pasting text. If you paste the clipboard right before a word, and if the latest character of the pasted text is not an blank space, or another set of special characters ([#32, #9, #160, #10, #13, #1, #2, #3, '<', '>', '(', ')', ':', '.', '!', '?', '\', '/']), a new blank space will be added after the pasted. MSWord otherwise also adds a blank space before the pasted text, if you are pasting it right after a word.

    But even here MSWord has a much more complex behavior. For instance, if you copy an internal piece of a word, like stin from testing and paste it, the extra blank space are not added, neither at right nor at left.

    Not just about Copy and Paste behavior, but also Cut/Delete. If you double-click on a word, it selects the word and the blank space at his right side. Then, when you Cut/Delete the selection, it removes the word and the blank space at right. But also, even not selecting the blank space at right side (for instance selecting the word with keyboard), when you Cut/Delete the selection, the blank space at right side is also removed.

    Finally, the reason of this email is to know if this feature of adding the extra blank space could be extended, in 3 ways:

    1. Also add a blank space at the left side of the pasted word (if necessary, as previously show)
    2. The Cut/Delete action also remove the blank spaces at the right side of the selected text.
    3. The Double Click also select the blank spaces at the right side of the selected word.

    What do you think?

    Thanks in advance

    Alessandro Fragnani