Skip to content

HTML - Table width #2

Description

@dobragab

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=unicode">
  <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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions