--- loncom/html/htmlarea/Attic/htmlarea.js 2004/06/02 00:55:16 1.4
+++ loncom/html/htmlarea/Attic/htmlarea.js 2005/02/17 08:59:45 1.5
@@ -9,7 +9,7 @@
// Version 3.0 developed by Mihai Bazon.
// http://dynarch.com/mishoo
//
-// $Id: htmlarea.js,v 1.4 2004/06/02 00:55:16 www Exp $
+// $Id: htmlarea.js,v 1.5 2005/02/17 08:59:45 albertel Exp $
if (typeof _editor_url == "string") {
// Leave exactly one backslash at the end of _editor_url
@@ -2038,7 +2038,8 @@ HTMLArea.getHTML = function(root, output
case 3: // Node.TEXT_NODE
// If a text node is alone in an element and all spaces, replace it with an non breaking one
// This partially undoes the damage done by moz, which translates ' 's into spaces in the data element
- if ( !root.previousSibling && !root.nextSibling && root.data.match(/^\s*$/i) ) html = ' ';
+ // this was but since are document encodings are all over the place it causes random havoc
+ if ( !root.previousSibling && !root.nextSibling && root.data.match(/^\s*$/i) ) html = ' ';
else html = HTMLArea.htmlEncode(root.data);
break;
case 8: // Node.COMMENT_NODE