Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I usually have to copy/paste test from web pages (or other places) and paste it into HTML forms (usually Chrome).

The problem is that ofter I do end-up with a text that has additional leading or trailing spaces.

Is there a way to prevent this, by default? Like an OS X application or Chrome extension that can trick how paste works?

share|improve this question

There´s an app for that. ClipMenu besides keeping a clipboard history it is possible to assign scripts to the entries. (1) You copy as usual (2) click on ClipMenu's status bar icon, select your latest entry, and use a user-selectable key-click command to perform LTrim or RTrim on the entry. ClipMenu is freeware.

share|improve this answer
Thanks, this almost solves the problem, but still I cannot make it work when I press Cmd+V or doing a right-mouse-click and selecte Paste. – sorin Oct 3 '12 at 13:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.