mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-10-08 13:44:18 +00:00
Output: change carriage returns & tabs to work with Excel. Fixes #845
This commit is contained in:
parent
670f63967a
commit
96b0bb7f4c
2
dist/js/jquery.tablesorter.widgets.js
vendored
2
dist/js/jquery.tablesorter.widgets.js
vendored
@ -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) {
|
||||||
|
2
dist/js/jquery.tablesorter.widgets.min.js
vendored
2
dist/js/jquery.tablesorter.widgets.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/widgets/widget-output.min.js
vendored
2
dist/js/widgets/widget-output.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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) {
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user