1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 16:08:35 +02:00
Files
archived-php-src/ext/zlib/tests
Peter Kokot 03f3b8479b Sync leading and final newlines in source code files
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-14 12:51:01 +02:00
..
2006-06-26 23:35:22 +00:00
2010-03-12 10:28:59 +00:00
2012-09-03 13:37:34 +02:00
2012-09-03 13:37:34 +02:00
2012-03-27 18:16:02 +02:00
2013-06-17 01:06:20 -07:00
2012-04-24 20:35:49 +02:00
2012-04-24 19:50:00 +02:00
2014-08-05 15:44:43 +02:00
2014-08-05 15:44:43 +02:00
2010-01-19 12:42:50 +00:00
2007-06-18 10:02:12 +00:00
2013-06-10 13:36:17 -07:00
2013-06-10 13:36:17 -07:00
2013-06-10 13:36:17 -07:00
2013-06-10 13:36:17 -07:00
2013-06-10 13:36:17 -07:00
2013-06-10 13:36:17 -07:00
2013-06-10 13:36:17 -07:00
2016-06-13 15:47:08 +02:00
2015-08-23 17:55:23 +02:00
2015-08-23 17:55:23 +02:00
2015-08-23 17:55:23 +02:00
2015-04-12 20:55:35 -07:00
2016-06-13 15:47:08 +02:00
2016-06-13 15:47:08 +02:00
2011-08-31 04:24:48 +00:00
2011-08-31 04:24:48 +00:00
2011-08-31 04:24:48 +00:00
2015-04-12 20:55:35 -07:00
2015-04-12 20:55:35 -07:00
2016-02-01 18:58:02 -08:00