bernat / best_in_place

A RESTful unobtrusive jQuery Inplace-Editor and a helper as a Rails Gem
http://blog.bernatfarrero.com/in-place-editing-with-javascript-jquery-and-rails-3/
1.2k stars 570 forks source link

Input field strips leading and trailing whitespace #552

Open Carpela opened 8 years ago

Carpela commented 8 years ago

When I enter some information e.g. " OR " Best in place is stripping the leading and trailing spaces and thus updaing the field as "OR". Now I can sort of understand why you might want to do that, but in this case, I really need it to keep the spaces...

Carpela commented 8 years ago

Looks like it won't accept " " as a valid entry either. Is there a way to switch this off?

Ghanimaid commented 7 years ago

Any news in that case? I need this "nontrailing whitespace" function too