View Single Post
Old 08-17-2018, 03:51 PM   #4
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by KevinH View Post
This should now be fixed in master. And yes handling mark like other inline tags was the answer.

Thank you for your bug report with explanatory links and testcase! It made things much easier to handle.


Also, this one is purely for aesthetics, but would it be possible to do a similar thing with Prettifying <td> + <th>?

Older versions of Sigil (forget which version) used to keep them "condensed":

2x6 Simple Table (Old Method):

This method was easily readable.

Note: I recreated the spacing off the top of my head. It was similar to this.

Spoiler:
Code:
  <table border="1">
    <tbody>
      <tr>
        <th colspan="2"><i>Proportion of age groups attending school</i></th>
      </tr>

      <tr>
        <th>Ages (years)</th>

        <th>Per cent attending</th>
      </tr>

      <tr>
        <td>10–14</td>

        <td>96</td>
      </tr>

      <tr>
        <td>15–17</td>

        <td>56</td>
      </tr>

      <tr>
        <td>18–20</td>

        <td>17</td>
      </tr>

      <tr>
        <td>21</td>

        <td>5</td>
      </tr>
    </tbody>
  </table>


2x6 Simple Table (New Method):

Spoiler:
Code:
  <table border="1">
    <tbody>
      <tr>
        <th colspan="2">
          <i>Proportion of age groups attending school</i>
        </th>
      </tr>

      <tr>
        <th>
          Ages (years)
        </th>

        <th>
          Per cent attending
        </th>
      </tr>

      <tr>
        <td>
          10–14
        </td>

        <td>
          96
        </td>
      </tr>

      <tr>
        <td>
          15–17
        </td>

        <td>
          56
        </td>
      </tr>

      <tr>
        <td>
          18–20
        </td>

        <td>
          17
        </td>
      </tr>

      <tr>
        <td>
          21
        </td>

        <td>
          5
        </td>
      </tr>
    </tbody>
  </table>


Even the most simple of tables explodes beyond a full screen length. And the way it is indented is much harder to figure out the values + what a table is doing just from the code.
Tex2002ans is offline   Reply With Quote