Add a newline to the diff temp files to remove the annoying message about it
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 23 Sep 2004 02:30:56 +0000 (02:30 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 23 Sep 2004 02:30:56 +0000 (02:30 +0000)
maintenance/parserTests.php

index 96f5e53..e88d0de 100644 (file)
@@ -182,7 +182,7 @@ class ParserTest {
        
        function dumpToFile( $data, $filename ) {
                $file = fopen( $filename, "wt" );
-               fwrite( $file, $data );
+               fwrite( $file, rtrim( $data ) . "\n" );
                fclose( $file );
        }
 }