Only delete trailing whitepsace if it is indeed trailing. Fixes: debbugs:15767
Attach a file by drag & drop or click to upload