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:
parent
658952d328
commit
f70c77e5ca
2 changed files with 8 additions and 3 deletions
|
@ -2,6 +2,8 @@ Changelog for Writer2LaTeX version 1.4 -> 1.6
|
||||||
|
|
||||||
---------- version 1.6 beta ----------
|
---------- version 1.6 beta ----------
|
||||||
|
|
||||||
|
[w2x] No longer add cellspacing attribute if exporting to HTML5
|
||||||
|
|
||||||
[w2l] Added support for non-ASCII BibTeX files. The new option bibtex_encoding is used to specify the encoding of
|
[w2l] Added support for non-ASCII BibTeX files. The new option bibtex_encoding is used to specify the encoding of
|
||||||
the BibTeX files loaded via the option external_bibtex_files. The default value is "document" which implies the
|
the BibTeX files loaded via the option external_bibtex_files. The default value is "document" which implies the
|
||||||
same encoding as the LaTeX document. Otherwise the same values as for inputencoding are supported.
|
same encoding as the LaTeX document. Otherwise the same values as for inputencoding are supported.
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
*
|
*
|
||||||
* All Rights Reserved.
|
* 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) {
|
private Element createTable(TableReader tblr) {
|
||||||
Element table = converter.createElement("table");
|
Element table = converter.createElement("table");
|
||||||
// Apply table style
|
// Apply table style
|
||||||
// IE needs the cellspacing attribute, as it doesn't understand the css border-spacing attribute
|
// Older versions of IE needs the cellspacing attribute, as it doesn't understand the css border-spacing attribute
|
||||||
table.setAttribute("cellspacing","0");
|
// We cannot do this with HTML5
|
||||||
|
if (!converter.isHTML5()) {
|
||||||
|
table.setAttribute("cellspacing","0");
|
||||||
|
}
|
||||||
applyTableStyle(tblr.getTableStyleName(), table, tblr.isSubTable());
|
applyTableStyle(tblr.getTableStyleName(), table, tblr.isSubTable());
|
||||||
return table;
|
return table;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue