Index: EditPage.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/EditPage.php,v
retrieving revision 1.159
diff -u -r1.159 EditPage.php
--- EditPage.php	3 Apr 2005 07:01:29 -0000	1.159
+++ EditPage.php	18 Apr 2005 17:24:15 -0000
@@ -1025,6 +1025,10 @@
 
 		$toolbar.="document.writeln(\"<div id='toolbar'>\");\n";
 		foreach($toolarray as $tool) {
+			
+			// remove linebreaks as they may brake the JavaScript code
+			$tool['sample'] = str_replace("\n", ' ' , $tool['sample']);
+			$tool['tip'] = str_replace("\n", ' ' , $tool['tip']);
 
 			$image=$wgStylePath.'/common/images/'.$tool['image'];
 			$open=$tool['open'];
