diff --git a/libraries/common.lib.php b/libraries/common.lib.php
index 4194caf9b..743f95642 100644
--- a/libraries/common.lib.php
+++ b/libraries/common.lib.php
@@ -2736,13 +2736,14 @@ function PMA_getTitleForTarget($target) {
*/
function PMA_js_mootools_domready($code, $print=true)
{
+ // these generated newlines are needed
$out = '';
$out .= '';
if ($print)
@@ -2753,9 +2754,12 @@ function PMA_js_mootools_domready($code, $print=true)
function PMA_js($code, $print=true)
{
+ // these generated newlines are needed
$out = '';
$out .= ''."\n";
if ($print)