Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print table cell as inline #101

Closed
zackad opened this issue Dec 9, 2024 · 1 comment · Fixed by #103
Closed

Print table cell as inline #101

zackad opened this issue Dec 9, 2024 · 1 comment · Fixed by #103
Labels
Bug Something isn't working Printer Logic related on how to print the output

Comments

@zackad
Copy link
Owner

zackad commented Dec 9, 2024

Input

<table><thead>
      <tr>
        <th>name</th><th>address</th>
      </tr>
      </thead>
      <tbody><tr>
        <td>name</td><td>address</td>
      </tr></tbody>
      <tfoot></tfoot></table>

Expected Output

<table>
  <thead>
    <tr>
      <th>name</th>
      <th>address</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>name</td>
      <td>address</td>
    </tr>
  </tbody>
  <tfoot></tfoot>
</table>

Actual Output

<table>
  <thead>
    <tr>
      <th>
        name
      </th>
      <th>
        address
      </th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>
        name
      </td>
      <td>
        address
      </td>
    </tr>
  </tbody>
  <tfoot></tfoot>
</table>
@zackad zackad added Bug Something isn't working Printer Logic related on how to print the output labels Dec 9, 2024
@GaelPQCQ
Copy link

Don't know if it is linked but I also have this behaviour with simple HTML, and breaking everything on a new line seems like overkill:

Expected Output

<h1>Small title</h1>

Actual Output

<h1>
    Small title
</h1>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Printer Logic related on how to print the output
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants