MarkupConverter icon indicating copy to clipboard operation
MarkupConverter copied to clipboard

HTML - Table width

Open dobragab opened this issue 10 years ago • 1 comments

Hello,

I know this projct is not really up-to-date, but I've just started looking for a HTML to RTF converter, and found yours. Awesome job! Almost as good as Sautin's dll, but there's a significant problem. I can't set column widths in tables, or width of tables. Example HTML:

<!DOCTYPE html>
<html>
<head>
  <title>Table example</title>
  <meta http-equiv=Content-Type content="text/html; charset=UTF-8">
  <style>
    body {
      font-family: "Bookman Old Style", serif;
      font-weight: 200;
      font-size: 16px;
      margin: 0px;

    table {
      width: 100%;
    }
  </style>
</head>

<body>

  <table style="width:100%">
   <!-- <colgroup>
      <col width="50%" />
      <col width="50%" />
    </colgroup>-->
    <tr>
      <td style="width:50%">First cell</td>
      <td style="width:50%">Second cell, a bit longer</td>
    </tr>

  </table>

</body>
</html>

At colgroup it crashes, and style="width:50%" is ignored.

This is the only thing I miss, otherwise it would be a perfect alternative of Sautin's one. I hope anyone is still caring about this cool project.

Any help would be appreciated. Thanks,

dobragab

dobragab avatar Jan 28 '15 23:01 dobragab

Thanks for the issue. I am not actively working on this but would gladly accept PR's

mmanela avatar Jan 29 '15 01:01 mmanela