From: Brion Vibber Date: Thu, 23 Sep 2004 02:30:56 +0000 (+0000) Subject: Add a newline to the diff temp files to remove the annoying message about it X-Git-Tag: 1.5.0alpha1~1865 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=52441affd50928effa5ae3f8638cb9673ac4bb79;p=lhc%2Fweb%2Fwiklou.git Add a newline to the diff temp files to remove the annoying message about it --- diff --git a/maintenance/parserTests.php b/maintenance/parserTests.php index 96f5e53dd4..e88d0ded28 100644 --- a/maintenance/parserTests.php +++ b/maintenance/parserTests.php @@ -182,7 +182,7 @@ class ParserTest { function dumpToFile( $data, $filename ) { $file = fopen( $filename, "wt" ); - fwrite( $file, $data ); + fwrite( $file, rtrim( $data ) . "\n" ); fclose( $file ); } }