View Single Post
Old 09-21-2019, 07:10 AM   #1
lomtickofbooks
Junior Member
lomtickofbooks began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2019
Device: iPad
Sigil removes required HTML Table code

I'm more than happy to report this as an issue on Sigil's GitHub page, but this forum may be able to help with this issue.
Versions tested: Sigil 0.9.18 and Sigil-0.9.17

Issue: When saving an ePub, Sigil strips off the HTML Table code and only leaves the 'cell' content.

Research done: Thread from 2013 shows that this was something that Sigil is capable of doing: https://www.mobileread.com/forums/sh...67&postcount=5

Tests done (work around): I've opened the same ePub in Calibre and added the identical HTML table code and saved the file with no complaints. I tested the ePub made by Calibre in several eBook readers and it looks fine.

To assist anyone looking to test this, you can go to this site https://divtable.com/table-styler/ and generate a table and style code and see for yourself. If you choose the "no style" and un-tick the header and footer choices from this site, than all you need is the plain HTML code and don't need to add the CSS code to the ePub style page.

Example:
Table Code (four columns of third row for example):
Code:
<tr>
<td>cell1_3</td>
<td>cell2_3</td>
<td>cell3_3</td>
<td>cell4_3</td>
</tr>
Shows as a table in the Sigil's 'preview' pane
Save it in Sigil.
A pop-up flashes for a second saying something about "cleaning up code"
What is left is only the words
cell1_3
cell2_3
cell3_3
cell4_3
lomtickofbooks is offline   Reply With Quote