I paste my data in from an excel sheet. Often, Excel adds spaces and tabs to what I paste.
I've just had some annoying errors- "The odometer must be a number.", "The amount must be a number.", "The price per unit must be a number." - all because there were some rogue spaces in what I pasted.
It's really fiddly to have to remove them - can't you please just strip spaces from what's been entered.
|