Some cleanups to the trailing-whitespace sample plugin.