[Dnsmasq-discuss] Removed empty trailing lines
Geert Stappers
stappers at stappers.nl
Sat Nov 30 13:17:07 UTC 2024
On Tue, Nov 19, 2024 at 12:23:40PM +0100, Sven Geuer wrote:
> On Sun, Nov 10, 2024 at 10:53:02AM +0100, Geert Stappers wrote:
> > [PATCH] Removed empty trailing lines
> >
>
> In addition there are 6793 lines in 110 files with trailing spaces
> including \r characters
Those trailing characters have no use,
at least no one has spoken about their use.
> which can be identified by
>
> GREP_COLORS='ms=41' grep -r --color=always '[[:space:][:cntrl:]]\+$' *
>
> As a patch would be exuberant I am hesitant to provide one. Instead I
> suggest to apply a suitable command line to the source tree, for
> example
>
> find -type f ! -path './.git/*' | xargs -n1 sed -i 's/[[:space:][:cntrl:]]\+$//'
>
Yes, that would be a nice clean-up.
> Best,
> Sven
Groeten
Geert Stappers
--
Silence is hard to parse
More information about the Dnsmasq-discuss
mailing list