freedomofpress/securedrop — pull request #411 by garrettr (2014-05-29 04:20:06+00:00)
Title: hack to avoid added spaces when copying codename

Fixes the annoying "add spaces when pasting copied " bug with a hack. I tried a lot of different combinations and this is the only one that worked.

This PR only fixes the copying the source codename. The journalist designations on the journalist index page still have this issue, but I am leaving them as they are because:
1. won't cause authentication problems (pasting the codename with the spaces will fail the hash, very confusing)
2. I couldn't get this same hack to work when tags were involved. Well, it worked, but double-clicking would only select the closest word and no longer the entire span. Go figure.

This is ultimately a Firefox bug, which I [filed](https://bugzilla.mozilla.org/show_bug.cgi?id=1017407).

Closes #402 (with caveats from above)