I just noticed that when adding glosses for a sense, spaces around the gloss are not removed. I found this surprising, since it’s inconsistent with the behavior for labels, descriptions and aliase**Problem:**
Lemmas, wherGlosses and Representations on a Lexeme do not handle whitespace is stripped – this makes it easier to,at the beginning and end of the input correctly. for example,They should be handled in the same way as on Items. copy+paste them around,Additional whitespace at the beginning or end of input should be stripped before saving. ignoring whether the selection happened to include some extra spaces or noExisting input that is changed to have a whitespace at the beginning or end should leave to the save/publish link staying grayed out.
Because I’m being lazy right now, I didn’t test how lemmas and form representations behave (sorry).Currently the input for Lemmas throws an error and the input for Glosses and Representations is accepted as-is.
* Input via the API and UI that contains whitespace at the beginning or end of a Lemma, Feel free to edit this task into a better shapeGloss or Representation is stripped of that whitespace before saving.