rem: for (var i=0; i < lines.length; i++) lines[i] = this.trimString(lines[i].replace(/\r|\n/g, "")); 
add: var lines = new Array(); var numColumns = 0; for (var i=0; i < _lines.length; i++) { _lines[i] = this.trimString(_lines[i].replace(/\r|\n/g, "")); _lines[i] = _lines[i].replace(/<\/?p[^>]*>/gi, ""); if (_lines[i] != "") { lines[numColumns] = _lines[i]; numColumns++; } } 
context: WikiEditor.prototype.convertTableExternal = function(regexp, result, content) {    var text = this.trimString(result[1]);    var lines = this._getLines(text);    var str = "<table class=\"wiki-table\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">"    for (var i=0; i < lines.length; i++)        lines[i] = this.trimString(lines[i].replace(/\r|\n/g, ""));    var rows = new Array();  // rows of table    var rowindex = 0;    for (var i=0; i < lines.length; i++) {        var row = "";        var k = 0;        do {            row += lines[i+k];            k++;        } while ((lines[i + k] != null) && (lines[i+k-1].lastIndexOf("\\\\") == (lines[i+k-1].length - 2)))        rows[rowindex] = row;        rowindex++;        i += (k - 1);    }    for (var i=0; i < rows.length; i ++) {        str += "<tr>";        var cols = rows[i].split("|");  // get cols        for (var j=0; j < cols.length; j++) {            if ( i== 0) str += "<td style='background:#b6c5f2;font-weight:bold;'>";            else  str += "<td style='background:#FFFFFF'>";            var linescol = cols[j].split("\\\\");            if (linescol.length == 1) str += linescol[0];            else if (linescol.length > 1)                for (var k=0; k < linescol.length; k++) {                    if (linescol[k] == "") linescol[k] = "&nbsp;"  // for empty paragraph                    str += ("<p class='paragraph'>" + linescol[k] + "<\/p>");                }            str += "<\/td>";        }        str += "<\/tr>";    }    str += "<\/table>";    return content.replace(regexp, str) ;}
meta: 6184	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/1e540478186618f6b999863aedec34c80810164b/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js