removed trailing spaces and tabs from source and text

removed trailing spaces and tabs from source and text

This commit ignores the “contrib” folder in order to prevent merge conflicts in dependencies, should these be updated via git.