rem: { if (typeof evt == "undefined" || evt == null) return null; var f = evt + ""; f = f.substring(f.indexOf("{") + 1); if (f.charAt(f.length - 1) == "\n") f = f.substring(0, f.length - 2); else f = f.substring(0, f.length - 1); var res = ""; for (i=0;i<f.length;i++) if (f.charAt(i) == "\n") res += ""; else if (f.charAt(i) == '"') res += "'"; else res += f.charAt(i); var startSpaces = new RegExp("^[ ]+", "gim"); var endSpaces = new RegExp("[ ]+$", "gim"); res = res.replace(startSpaces, ""); res = res.replace(endSpaces, ""); return res; 
add: { if (typeof evt == "undefined" || evt == null) return null; var f = evt + ""; f = f.substring(f.indexOf("{") + 1); if (f.charAt(f.length - 1) == "\n") f = f.substring(0, f.length - 2); else f = f.substring(0, f.length - 1); var res = ""; for (i=0;i<f.length;i++) if (f.charAt(i) == "\n") res += ""; else if (f.charAt(i) == '"') res += "'"; else res += f.charAt(i); var startSpaces = new RegExp("^[ ]+", "gim"); var endSpaces = new RegExp("[ ]+$", "gim"); res = res.replace(startSpaces, ""); res = res.replace(endSpaces, ""); return res; 
context:         function processEvent(evt)        {            if (typeof evt == "undefined" || evt == null) return null;            var f = evt + "";            f = f.substring(f.indexOf("{") + 1);            if (f.charAt(f.length - 1) == "\n") f = f.substring(0, f.length - 2);            else f = f.substring(0, f.length - 1);            var res = "";            for (i=0;i<f.length;i++)                if (f.charAt(i) == "\n") res += "";                else if (f.charAt(i) == '"') res += "'";                     else res += f.charAt(i);            var startSpaces = new RegExp("^[ ]+", "gim");            var endSpaces = new RegExp("[ ]+$", "gim");            res = res.replace(startSpaces, "");            res = res.replace(endSpaces, "");            return res;        }
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5635/434918b400ee690fa5c88806ee47f5494d783b31/table-editor.js/clean/fudge/wysiwyg/plugins/table_editing/table-editor.js