Open imtbl opened 4 years ago
NB, in python string trimming is done with a method called strip()
https://docs.python.org/3.8/library/stdtypes.html#str.strip
Users on the Discord have argued that there might be edge cases where having the ability to keep leading/trailing whitespace might be required. So the ability to trim should probably be rather a setting as to not break existing workflows.
At least make trim default on new queries then. Changing existing ones I can agree might break something, but considering it's most probably a very edge-case to not trim whitespace I see no reason to not trim by default.
As reported by a user in Discord, Hydrus currently doesn't seem to trim downloader queries (at least for subscriptions, probably elsewhere too). This can lead to confusing behavior especially if the users copy/pastes a query and doesn't check for trailing whitespace.
Example screenshot provided by the user: