From 4d2d451e31055e306db13324f3db6674f9f9a4e0 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Thu, 8 Mar 2007 23:43:31 +0100
Subject: [PATCH] always have a trailing newline in JavaScript output

This may fix https://bugzilla.mozilla.org/show_bug.cgi?id16033

darcs-hash:20070308224331-7ad00-e5ef018706062baf6bec2bd11dfb318e0fe4b1f6.gz
---
 lib/exe/js.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/exe/js.php b/lib/exe/js.php
index 149b7ab5b..69b0ba27d 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -153,6 +153,8 @@ function js_out(){
         $js = js_compress($js);
     }
 
+    $js .= "\n"; // https://bugzilla.mozilla.org/show_bug.cgi?id=316033
+
     // save cache file
     io_saveFile($cache,$js);
 
-- 
GitLab