Do not use cellspacing in HTML5

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@264 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2015-07-27 08:03:31 +00:00
parent 658952d328
commit f70c77e5ca
2 changed files with 8 additions and 3 deletions

View file

@ -20,7 +20,7 @@
*
* All Rights Reserved.
*
* Version 1.6 (2015-06-23)
* Version 1.6 (2015-07-27)
*
*/
@ -178,8 +178,11 @@ public class TableConverter extends ConverterHelper {
private Element createTable(TableReader tblr) {
Element table = converter.createElement("table");
// Apply table style
// IE needs the cellspacing attribute, as it doesn't understand the css border-spacing attribute
table.setAttribute("cellspacing","0");
// Older versions of IE needs the cellspacing attribute, as it doesn't understand the css border-spacing attribute
// We cannot do this with HTML5
if (!converter.isHTML5()) {
table.setAttribute("cellspacing","0");
}
applyTableStyle(tblr.getTableStyleName(), table, tblr.isSubTable());
return table;
}