Comment 2 for bug 1826631

Revision history for this message
leastcommonancestor (leastcommonancestor) wrote : Re: [Bug 1826631] Re: calibre bug 1826631

On 27.04.19 09:42, Kovid Goyal wrote:
> I need more detail, what does "not work" mean? Can you post an example
> that you believeis notbeing correctly besutified.
>
> status incomplete
>
> ** Changed in: calibre
> Status: New => Incomplete
>
If I take the example from w3schools:

<table>
  <colgroup>
    <col span="2" style="background-color:red">
    <col style="background-color:yellow">
  </colgroup>
  <tr>
    <th>ISBN</th>
    <th>Title</th>
    <th>Price</th>
  </tr>
  <tr>
    <td>3476896</td>
    <td>My first HTML</td>
    <td>$53</td>
  </tr>
</table>

and strip the formatting:

<table><colgroup><col span="2" style="background-color:red"/><col
style="background-color:yellow"/></colgroup><tbody><tr><th>ISBN</th><th>Title</th><th>Price</th></tr><tr><td>3476896</td><td>My
first HTML</td><td>$53</td></tr></tbody></table>

"Beautify" leaves this unchanged. If I remove the colgroup the result is:

  <table>

    <tbody>

      <tr><th>ISBN</th><th>Title</th><th>Price</th></tr>

      <tr>
        <td>3476896</td>
        <td>My first HTML</td>
        <td>$53</td>
      </tr>

    </tbody>

  </table>

If I replace th-tags with td-tags I get:

  <table>

    <tbody>

      <tr>
        <td>ISBN</td>
        <td>Title</td>
        <td>Price</td>
      </tr>

      <tr>
        <td>3476896</td>
        <td>My first HTML</td>
        <td>$53</td>
      </tr>

    </tbody>

  </table>

Greetings

LCA