r1299 - branches/bxe_2_0/mozile

[email protected]
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Wed May  4 14:34:10 2005
New Revision: 1299

Modified:
   branches/bxe_2_0/mozile/mozileTransportDriver.js
Log:
fix for http://bugs.bitflux.ch/cgi-bin/bugzilla/show_bug.cgi?id=784
message box: no text wrapping


Modified: branches/bxe_2_0/mozile/mozileTransportDriver.js
==============================================================================
--- branches/bxe_2_0/mozile/mozileTransportDriver.js	(original)
+++ branches/bxe_2_0/mozile/mozileTransportDriver.js	Wed May  4 14:34:10 2005
@@ -52,15 +52,16 @@
 			alerttext = parserErrorNode.firstChild.data;
 			var sourceNode = parserErrorNode.getElementsByTagName("sourcetext")[0];
 			if (sourceNode) {
-				alerttext += "<pre>\n" + sourceNode.firstChild.data + "\n</pre>";
+				alerttext += "<pre style='white-space: -moz-pre-wrap'>\n" + sourceNode.firstChild.data + "\n</pre>";
 			}
+			
 		}
 		else
 		{
 			alerttext="Something went wrong:\n\n" + status + "\n\n";
 			var objXMLSerializer = new XMLSerializer;
 			var strXML = objXMLSerializer.serializeToString(responseXML.documentElement);
-			alerttext+= strXML;
+			alerttext+= "<pre style='white-space: -moz-pre-wrap'>\n"+strXML+ "</pre>";;
 		}
 		reqObj.isError = true;
 		reqObj.statusText = alerttext;
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.