On Sun, 12 Feb 2023 07:38:31 +0100 Axel Beckert <a...@debian.org> wrote:
> Martin-Éric Racine wrote:
> > Lintian randomly reports trailing white space in debian/changelog.
> > It would be desirable for debhelper to parse the file and strip
> > traling white space whnever found.
>
> No. debhelper does not edit files which are checked by that check
> (namely debian/changelog, debian/control and debian/rules).

dh_installchangelogs could start by stripping trailing whitespace in
the source changelog and only then copy the file to the binary
targets.

> P.S.: If you're an Emacs user, just run "M-x wh-cl" when editing
> debian/changelog and you're done.

In principle, "set trimblanks" in .nanorc accomplishes the same thing.
In practice, this only seems to work when lines are cut as the result
of text justification i.e. it doesn't trim trailing white space
unconditionally.

Martin-Éric

Reply via email to