bugtex4ht - Bugs: bug #315, Invalid html generated for...

Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #315: Invalid html generated for longtable

Submitted by:  Ulrich Müller <ulm>
Submitted on:  Thu Jun 16 05:18:52 2016  
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Thu Jun 16 08:07:00 2016, comment #1:

Longtable itself needs several LaTeX runs to stabilize:

Note: Various parts of the following table will not line up correctly until this document has been run through LATEX several times. This is a characteristic feature of this package, as described below.

tex4ht needs several compilation steps as well for tables to stabilize, depending on the number of columns. In this case, as the table has 7 columns, it needs 7 compilations for correct appearance (mk4ht xhlatex compiles the document three times on every run, so it is needed to call it three times to get at least 7 compilations).

Michal Hoftich <michal_h21>
Project Member
Thu Jun 16 05:18:52 2016, original submission:

Processing attached bug.tex with "mk4ht xhlatex bug" once results in the following invalid html output (see bug1.html):

style="vertical-align:baseline;" id="TBL-1-1-"><td colspan="3" style="white-space:nowrap; text-align:left;" id="TBL-1-1-1"
class="td11"></td><div class="multicolumn" style="white-space:nowrap; text-align:center;"> <div class="caption"

><span class="id">Table&#x00A0;1: </span><span

class="content">A longtable</span></div><!--tex4ht:label?: x1-2r1 --> </div><a

Note that the div element starts after the td element is closed. Also, colspan is only 3 while it should be 7.

After running "mk4ht xhlatex bug" three times, html output is finally valid, see bug3.html.

Ulrich Müller <ulm>


Attached Files
file #248:  bug.tex added by ulm (147B - text/x-tex)
file #249:  bug1.html added by ulm (3kB - text/html)
file #250:  bug3.html added by ulm (3kB - text/html)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by michal_h21 (Posted a comment)
  • -unavailable- added by ulm (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    3 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu Jun 16 05:18:52 2016ulmAttached File-=>Added bug.tex, #248
      Attached File-=>Added bug1.html, #249
      Attached File-=>Added bug3.html, #250
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup+gray