diff --git a/inc/html.php b/inc/html.php
index a8761ad4a283bb9147426f1ea5139fbb87e8226a..4a4cf27398c57d968c794aa3ccd2092919815e17 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -1217,9 +1217,9 @@ function html_edit(){
 
     if ($wr) {
         // sets changed to true when previewed
-        echo '<script type="text/javascript" charset="utf-8"><!--//--><![CDATA[//><!--';
+        echo '<script type="text/javascript" charset="utf-8"><!--//--><![CDATA[//><!--'. NL;
         echo 'textChanged = ' . ($mod ? 'true' : 'false');
-        echo '//--><!]]></script>';
+        echo '//--><!]]></script>' . NL;
     } ?>
     <div style="width:99%;">