glib/gio/xdgmime
Simon McVittie 44c004c84e 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 GLib,
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>
2020-06-10 09:48:02 +01:00
..
.gitignore
meson.build Remove HAVE_CONFIG_H defs and uses 2018-02-21 13:57:10 +00:00
xdgmime.c xdgmime: Don’t set an out argument if it’s NULL 2019-06-03 12:13:53 +01:00
xdgmime.h xdgmime: Add xdg_mime_set_dirs() method to override XDG envvars 2018-12-17 17:16:03 +00:00
xdgmimealias.c Remove HAVE_CONFIG_H defs and uses 2018-02-21 13:57:10 +00:00
xdgmimealias.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
xdgmimecache.c xdgmime: Prevent infinite loops from badly-formed MIME registrations 2019-09-13 12:13:49 +01:00
xdgmimecache.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
xdgmimeglob.c Remove HAVE_CONFIG_H defs and uses 2018-02-21 13:57:10 +00:00
xdgmimeglob.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
xdgmimeicon.c Normalize C source files to end with exactly one newline 2020-06-10 09:48:02 +01:00
xdgmimeicon.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
xdgmimeint.c xdgmime: Add better detection for text vs. binary and zero-sized files 2018-05-10 11:46:17 +01:00
xdgmimeint.h xdgmime: Add better detection for text vs. binary and zero-sized files 2018-05-10 11:46:17 +01:00
xdgmimemagic.c Remove HAVE_CONFIG_H defs and uses 2018-02-21 13:57:10 +00:00
xdgmimemagic.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00
xdgmimeparent.c Normalize C source files to end with exactly one newline 2020-06-10 09:48:02 +01:00
xdgmimeparent.h gio/xdgmime/: LGPLv2+ -> LGPLv2.1+ 2017-05-29 19:53:34 +02:00