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

Table valign middle bug #360

Closed
RekGRpth opened this issue Aug 30, 2019 · 7 comments
Closed

Table valign middle bug #360

RekGRpth opened this issue Aug 30, 2019 · 7 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@RekGRpth
Copy link

RekGRpth commented Aug 30, 2019

  1. test.html
<table border="1" width="100%">
    <thead>
        <tr valign="middle">
            <th rowspan="2">Very very very long header</th>
            <th colspan="2">Long header</th>
            <th rowspan="2">Very long header</th>
            <th rowspan="2">Very very very long header</th>
            <th rowspan="2">Very very very long header</th>
            <th rowspan="2">Very very very long header</th>
            <th rowspan="2">Very very very long header</th>
            <th rowspan="2">Very very very long header</th>
            <th rowspan="2">Very very very long header</th>
        </tr>
        <tr>
            <th>Header</th>
            <th>Header</th>
        </tr>
    </thead>
</table>
  1. command
htmldoc --charset utf-8 --header ... --footer ... --size a4 --outfile test.pdf test.html
  1. test.pdf
    test.pdf
  2. test.png
    test
@michaelrsweet
Copy link
Owner

HTMLDOC does not support multi-row headers in THEAD like this... THEAD support is VERY limited (just to repeat a single row across multiple pages) as the table formatter follows HTML 3.2 rules...

I will see if there is anything obvious here, but do not expect a quick fix.

@michaelrsweet michaelrsweet self-assigned this Aug 30, 2019
@michaelrsweet michaelrsweet added the investigating Investigating the issue label Aug 30, 2019
@michaelrsweet michaelrsweet added this to the Stable milestone Aug 30, 2019
@michaelrsweet
Copy link
Owner

@RekGRpth What version of HTMLDOC are you using? I just tried this and got different (correct) results with Git master...

@michaelrsweet michaelrsweet added unable-to-reproduce Unable to reproduce and removed investigating Investigating the issue labels Sep 25, 2019
@michaelrsweet michaelrsweet removed this from the Stable milestone Sep 25, 2019
@RekGRpth
Copy link
Author

Yes with default left margin there is no bag

htmldoc --webpage --left 1in --charset utf-8 --header ... --footer ... --size a4 --outfile test.pdf test.html

but with small left margin a bug appears

htmldoc --webpage --left 0.5in --charset utf-8 --header ... --footer ... --size a4 --outfile test.pdf test.html

@michaelrsweet
Copy link
Owner

@RekGRpth What version of HTMLDOC please?

@RekGRpth
Copy link
Author

git master

@michaelrsweet
Copy link
Owner

OK, I was able to reproduce using the different margins. Investigating...

@michaelrsweet michaelrsweet added bug Something isn't working and removed unable-to-reproduce Unable to reproduce labels Sep 28, 2019
@michaelrsweet michaelrsweet added this to the Stable milestone Sep 28, 2019
@michaelrsweet
Copy link
Owner

[master b79a27d] Fix a TABLE valign bug with rowspan (Issue #360)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants