ginatrapani/ThinkUp — Issue #1129: clippy copies newlines and whitespace to clipboard
Author: olekvi
Created: 2011-11-10 19:58:19+00:00
State: open

While setting up my own ThinkUp instance today I noticed URLs and other copied to my clipboard with the clippy.swf integrated in ThinkUp adds newlines and whitespace.

Example from the Twitter plugin config view (webapp/plugins/twitter/view/twitter.account.index.tpl):

68
69 http{if $smarty.server.HTTPS}s{/if}://{$smarty.server.SERVER_NAME}{$site_root_path}
70

When copied to the clipboard and the pasted we get URLs like:

"
http://expertlabs.aaas.org/
"

They tend not to work as expected (Twitter gave me some really strange error message)

My suggestion is to trade a bit of HTML readability to fix this, as it may not be obvious for everyone, and specially not those of us using clippy when setting up their brand new ThinkUp install / account :-) :

68 http{if $smarty.server.HTTPS}s{/if}://{$smarty.server.SERVER_NAME}{$site_root_path}

I will create a pull request for this issue.