diff options
author | Simon McVittie <smcv@collabora.com> | 2020-06-10 09:47:15 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2020-06-10 10:47:31 +0000 |
commit | eeef787418d7733f145a425a634669a53804ae6c (patch) | |
tree | 006941aa5e63b59ce2299e0def9871733df3bc49 /tools/dbus-print-message.c | |
parent | 55911d3ca92a25c15d8ff2963b555488418942ea (diff) | |
download | dbus-eeef787418d7733f145a425a634669a53804ae6c.tar.gz |
Normalize C source files to end with exactly one newline
Some editors automatically remove trailing blank lines, or
automatically add a trailing newline to avoid having a trailing
non-blank line that is not terminated by a newline. To avoid unrelated
whitespace changes when users of such editors contribute to dbus,
let's pre-emptively normalize all files.
Unlike more intrusive whitespace normalization like removing trailing
whitespace from each line, this seems unlikely to cause significant
issues with cherry-picking changes to stable branches.
Implemented by:
find . -name '*.[ch]' -print0 | \
xargs -0 perl -0777 -p -i -e 's/\n+\z//g; s/\z/\n/g'
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'tools/dbus-print-message.c')
-rw-r--r-- | tools/dbus-print-message.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/dbus-print-message.c b/tools/dbus-print-message.c index 547f72f8..2ce7f68b 100644 --- a/tools/dbus-print-message.c +++ b/tools/dbus-print-message.c @@ -600,4 +600,3 @@ print_message (DBusMessage *message, dbus_bool_t literal, long sec, long usec) fflush (stdout); } - |