Bug#881389: lintian: Incomplete solution to whitespace errors in file-contains-trailing-whitespace
Package: lintian
Version: 2.5.59
Severity: normal
Dear Maintainer,
In lintian's tag file-contains-trailing-whitespace, the maintainer is told
that they can remove the offending whitespace with:
sed -i -e 's@[ ]*$@@g' path/to/filename
However, that only removes trailing spaces, while trailing tabs will also
trigger the warning. The following sed would do better:
sed -i -e 's@[[:space:]]*$@@g' path/to/filename
(it's also not obvious to me that the maintainer should be encouraged to edit
old changelog entries in this fashion)
cheers
Stuart
Reply to: