Permalink
Browse files

Trim Header Column.

Old: \n                ID              ;\n                TITLE                  
Now: ID;TITLE

Line: 1515
Old: sLoopData = dt.aoColumns[i].sTitle.replace(/\n/g," ").replace( /<.*?>/g, "" );
New: sLoopData = dt.aoColumns[i].sTitle.replace(/\n/g," ").replace( /<.*?>/g, "" ).replace(/^\s+|\s+$/g,"");
  • Loading branch information...
iquirino committed Sep 8, 2011
1 parent a833db5 commit a1342be96fd480a74fa586f637e8cd6125f0626f
Showing with 1 addition and 1 deletion.
  1. +1 −1 media/js/TableTools.js
View
@@ -1512,7 +1512,7 @@ TableTools.prototype = {
{
if ( aColumnsInc[i] )
{
- sLoopData = dt.aoColumns[i].sTitle.replace(/\n/g," ").replace( /<.*?>/g, "" );
+ sLoopData = dt.aoColumns[i].sTitle.replace(/\n/g," ").replace( /<.*?>/g, "" ).replace(/^\s+|\s+$/g,"");
sLoopData = this._fnHtmlDecode( sLoopData );
sData += this._fnBoundData( sLoopData, oConfig.sFieldBoundary, regex ) +

0 comments on commit a1342be

Please sign in to comment.