supercollider/supercollider — pull request #659 by totalgee (2012-11-19 18:39:45+00:00)
Title: Fix for #657; copy/paste to OS X Mail loses tabs

In the mail thread for issue #657, Jakob mentioned: "In any case, I think it would make sense to make the code editor only copy plain text, as that's what code really is."

If you do want to do that, you can take this pull request. It makes copying from the code editor or the post window have MIME type "text/plain". Please do check it, though -- this is my first foray in to the wonderful world of SC and Qt code. I tested on OS X 10.8, and also checked that it works with characters from another character set (Spanish - ISO), not just basic ASCII.

I did not change the behaviour everywhere. For example, I didn't touch the Help window or TextView widgets, because those potentially should be formatted (or have the possibility?). Note that these also don't paste very nicely -- you don't get any formatting at all when copying from the Help window, for example, even to OS X's TextEdit app (which handles the pasting of code properly, and did so even before this fix).

If there is anywhere else you think this may be needed, please let me know!

Thanks,
Glen.