Skip to content

Commit bcfc2bc

Browse files
committed
Sync leading and final newlines in *.phpt sections
This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. 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
1 parent 3f2d4d0 commit bcfc2bc

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

tests/005.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,4 +287,3 @@ four rows again
287287
5
288288
---
289289
end of test
290-

tests/006.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,4 +298,3 @@ prepare and exec select
298298
10
299299
---
300300
end of test
301-

tests/bug46247.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ ibase_set_event_handler(NULL, 'foo', 1);
2424

2525
?>
2626
--EXPECTF--
27-
2827
Warning: Wrong parameter count for ibase_set_event_handler() in %s on line %d
2928

3029
Warning: ibase_set_event_handler(): supplied argument is not a valid InterBase link resource in %s on line %d

0 commit comments

Comments
 (0)