Fixed wrapping

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2025-02-27 18:58:18 +00:00
parent 7076a68d35
commit ce8523b00a

View file

@ -29,9 +29,15 @@
data_export_options = $(this).attr('data-export-options'); data_export_options = $(this).attr('data-export-options');
export_options = data_export_options ? JSON.parse(data_export_options) : {}; export_options = data_export_options ? JSON.parse(data_export_options) : {};
export_options['htmlContent'] = false; // this is already the default; but let's be explicit about it export_options['htmlContent'] = false; // this is already the default; but let's be explicit about it
export_options['jspdf']= {"orientation": "l"}; export_options['jspdf'] = {
export_options['jspdf'] = {"autotable": {"styles": {overflow: 'linebreak'}, "orientation": "l",
tableWidth: 'wrap'}}; "autotable": {
"styles": {
overflow: 'linebreak'
},
tableWidth: 'wrap'
}
};
// tableWidth: 'wrap', // tableWidth: 'wrap',
// the following callback method is necessary to prevent XSS vulnerabilities // the following callback method is necessary to prevent XSS vulnerabilities
// (this is taken from Bootstrap Tables's default wrapper around jQuery Table Export) // (this is taken from Bootstrap Tables's default wrapper around jQuery Table Export)