Output: change carriage returns & tabs to work with Excel. Fixes #845

This commit is contained in:
Mottie 2015-03-13 12:15:19 -05:00
parent 670f63967a
commit 96b0bb7f4c
5 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/*! tablesorter (FORK) widgets - updated 03-12-2015 (v2.21.1)*/ /*! tablesorter (FORK) widgets - updated 03-13-2015 (v2.21.1)*/
/* Includes: storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort */ /* Includes: storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort */
(function(factory) { (function(factory) {
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
*/ */
/*! tablesorter (FORK) widgets - updated 03-12-2015 (v2.21.1)*/ /*! tablesorter (FORK) widgets - updated 03-13-2015 (v2.21.1)*/
/* Includes: storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort */ /* Includes: storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort */
(function(factory) { (function(factory) {
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {

View File

@ -16,13 +16,13 @@ output = ts.output = {
event : 'outputTable', event : 'outputTable',
// wrap line breaks & tabs in quotes // wrap line breaks & tabs in quotes
regexQuote : /([\n\t]|<[^<]+>)/, // test regexQuote : /([\n\t\x09\x0d\x0a]|<[^<]+>)/, // test if cell needs wrapping quotes
regexBR : /(<br([\s\/])?>|\n)/g, // replace regexBR : /(<br([\s\/])?>|\n)/g, // replace
regexIMG : /<img[^>]+alt\s*=\s*['"]([^'"]+)['"][^>]*>/i, // match regexIMG : /<img[^>]+alt\s*=\s*['"]([^'"]+)['"][^>]*>/i, // match
regexHTML : /<[^<]+>/g, // replace regexHTML : /<[^<]+>/g, // replace
replaceCR : '\\n', replaceCR : '\x0d\x0a',
replaceTab : '\\t', replaceTab : '\x09',
popupTitle : 'Output', popupTitle : 'Output',
popupStyle : 'width:100%;height:100%;', // for textarea popupStyle : 'width:100%;height:100%;', // for textarea